alexandre vautier created NIFI-7359:
---------------------------------------

             Summary: Prometheus always reports several process metrics with 
the root group as parent
                 Key: NIFI-7359
                 URL: https://issues.apache.org/jira/browse/NIFI-7359
             Project: Apache NiFi
          Issue Type: Bug
          Components: Configuration
    Affects Versions: 1.11.4
            Reporter: alexandre vautier


* Create a process group A
 * Add a process B inside A
 * Setup the prometheus report sink
 * Look at [http://localhost:9092|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.

 



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to