Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
0.5.0
Description
Whenever OM uses Ratis, we may need the ability to collect its metrics through OM JMX. This should be a straightforward change, similar to org.apache.hadoop.ozone.HddsDatanodeService#start().
public void start() { //All the Ratis metrics (registered from now) will be published via JMX and //via the prometheus exporter (used by the /prom servlet MetricRegistries.global() .addReporterRegistration(MetricsReporting.jmxReporter()); MetricRegistries.global().addReporterRegistration( registry -> CollectorRegistry.defaultRegistry.register( new RatisDropwizardExports( registry.getDropWizardMetricRegistry())));
Attachments
Issue Links
- links to