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

Prometheus Metrics Server returns 500 when a Remote Process Group used

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 1.10.0
    • Extensions

    Description

      Prometheus Metrics Server returns 500 (Internal Server Error) when a Remote Process Group is used. The error message:

      java.lang.IllegalArgumentException: Incorrect number of labels.
      at io.prometheus.client.SimpleCollector.labels(SimpleCollector.java:64)
      at org.apache.nifi.reporting.prometheus.api.PrometheusMetricsUtil.createNifiMetrics(PrometheusMetricsUtil.java:405)
      at org.apache.nifi.reporting.prometheus.PrometheusServer$MetricsServlet.doGet(PrometheusServer.java:74)

      Just because the labels number of `ACTIVE_REMOTE_PORT_COUNT`, `INACTIVE_REMOTE_PORT_COUNT`, and `AVERAGE_LINEAGE_DURATION` are unmatched.

      Attachments

        Issue Links

          Activity

            People

              kotarot Kotaro Terada
              kotarot Kotaro Terada
              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 - 0.5h
                  0.5h