phoenix icon indicating copy to clipboard operation
phoenix copied to clipboard

Initial code push for TableLevel metrics.

Open vmeka2020 opened this issue 5 years ago • 1 comments

https://issues.apache.org/jira/browse/PHOENIX-5837

vmeka2020 avatar Apr 14 '20 06:04 vmeka2020

@vmeka2020 Take a look at PhoenixRuntime.getRequestReadMetricInfo() which uses the ReadMetricQueue() to transform/aggregate the metrics on the table basis. You may be able to use that style to populate your MetricsSource for JMX, much like the QueryLogger uses it to write it to the logs.

Using the ReadMetricsQueue and MutationMetricQueue will allow us to reuse already instrumented code. It also properly takes care of failures, retries ...

Additional info here - https://phoenix.apache.org/metrics.html

FYI @dbwong @ChinmaySKulkarni

jpisaac avatar Apr 28 '20 17:04 jpisaac