Uploaded image for project: 'Apache Ozone'
  1. Apache Ozone
  2. HDDS-3035

Add ability to enable Ratis metrics in OzoneManager

    XMLWordPrintableJSON

Details

    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

          Activity

            People

              swagle Siddharth Wagle
              avijayan Aravindan Vijayan
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 20m
                  20m