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

Prometheus always reports several process metrics with the root group as parent

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.12.0
    • Component/s: Configuration
    • Labels:
      None

      Description

      • Create a process group A
      • Add a process B inside A
      • Setup the prometheus report sink
      • Look at http://localhost:9092
      • Some metrics on the process B have the process group A as parent, other have the root process group.

      Look at file PrometheusMetricsUtil.java, the problem is between lines 441 and 462 variable parentPGId is used instead of parentId. 4 metrics are ok: TOTAL_BYTES_READ, TOTAL_BYTES_WRITTEN, AMOUNT_THREADS_TOTAL_ACTIVE and AMOUNT_THREADS_TOTAL_TERMINATED while the others 12 are wrong.

       

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                alexvaut alexandre vautier
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - 1h
                  1h
                  Remaining:
                  Time Spent - 20m Remaining Estimate - 40m
                  40m
                  Logged:
                  Time Spent - 20m Remaining Estimate - 40m
                  20m