You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@nifi.apache.org by "ASF subversion and git services (Jira)" <ji...@apache.org> on 2020/04/16 00:29:00 UTC

[jira] [Commented] (NIFI-7359) Prometheus always reports several process metrics with the root group as parent

    [ https://issues.apache.org/jira/browse/NIFI-7359?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17084449#comment-17084449 ] 

ASF subversion and git services commented on NIFI-7359:
-------------------------------------------------------

Commit b113a022e46ee755e6b9d4395b908c7f54b2bd37 in nifi's branch refs/heads/master from Alexandre Vautier
[ https://gitbox.apache.org/repos/asf?p=nifi.git;h=b113a02 ]

NIFI-7359 Fix parent id on process metrics for Prometheus

Signed-off-by: Matthew Burgess <ma...@apache.org>

This closes #4209


> 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
>            Reporter: alexandre vautier
>            Priority: Major
>             Fix For: 1.12.0
>
>   Original Estimate: 1h
>          Time Spent: 20m
>  Remaining Estimate: 40m
>
> * 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)