phoenix
phoenix copied to clipboard
Initial code push for TableLevel metrics.
https://issues.apache.org/jira/browse/PHOENIX-5837
@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