Uploaded image for project: 'Apache NiFi'
  1. Apache NiFi
  2. NIFI-5373

Create Metrics API and default implementation

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.7.0
    • 1.10.0
    • Core Framework

    Description

      A decoupling of the metrics library used by several reporting components by providing a similar API in the nifi-api module (under a new package org.apache.nifi.metrics.jvm) will help internalize the dependencies on the yammer/dropwizard metrics libraries and reduce the number of dependencies that NiFi extensions need to collect those types of metrics.

      While working towards support for building NiFi on Java 10+, tests for components that use the com.yammer.metrics:metrics-core:2.2.0 dependency are failing due to references to internal JDK modules.  These metrics libraries are now maintained dropwizard, and a new version (4.0.0) has been released that works with Java 10.

      The public API for the metrics libraries has changed a bit, and VirtualMachineMetrics is no longer available.  NiFi will supply its own public API for metrics that is derived from dropwizard/yammer's VirtualMachineMetrics to minimize impact to NiFi extensions that currently use this dependency.

      Attachments

        Issue Links

          Activity

            People

              jtstorck Jeff Storck
              jtstorck Jeff Storck
              Votes:
              0 Vote for this issue
              Watchers:
              2 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 - 3.5h
                  3.5h