Github user joshelser commented on the issue: https://github.com/apache/accumulo/pull/260 > Is there an example of creating a new metric, or is it still all JMX based? Current "state of the art" is via Hadoop Metrics2. The metrics are exposed via JMX, but it doesn't require you do write to JMX directly :). A rough outline would be... 1. Add a metrics key to https://github.com/apache/accumulo/blob/f81a8ec7410e789d11941351d5899b8894c6a322/server/tserver/src/main/java/org/apache/accumulo/tserver/metrics/TabletServerScanMetricsKeys.java 2. Update `add(String, long)` in https://github.com/apache/accumulo/blob/f81a8ec7410e789d11941351d5899b8894c6a322/server/tserver/src/main/java/org/apache/accumulo/tserver/metrics/Metrics2TabletServerScanMetrics.java (yuck, this is gross) 3. Update the RPC server implementation/code-path to invoke the metrics methods a la https://github.com/apache/accumulo/blob/b78edd3329cb7c981329fa2038a9352f79ab466d/server/tserver/src/main/java/org/apache/accumulo/tserver/TabletServer.java#L629-L632
--- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastruct...@apache.org or file a JIRA ticket with INFRA. ---