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

Pierre Villard commented on NIFI-13984:
---------------------------------------

Hi [~thierry.prats] - I have been looking into this and I see things properly 
populated on my side (using NiFi 2).

Something that is worth mentioning is that the user used to access the endpoint 
will need READ access on the root process group. I believe this is the issue 
you have here. When a user does not have read permission on a component, it'll 
see the UUID instead of the name.

> The NiFi API endpoints /flow/metrics/{producer} return incorrect tags
> ---------------------------------------------------------------------
>
>                 Key: NIFI-13984
>                 URL: https://issues.apache.org/jira/browse/NIFI-13984
>             Project: Apache NiFi
>          Issue Type: Bug
>          Components: Core Framework
>    Affects Versions: 1.27.0, 1.28.0, 2.0.0
>            Reporter: Thierry PRATS
>            Priority: Major
>
> The NiFi API endpoints */flow/metrics/json* and */flow/metrics/prometheus* 
> return incorrect tags.
> The component_name is equals to component_id. The same issue applies to the 
> tags instance,  source_name and destination_name, which correspond to their 
> IDs instead of their names.
>  
> {code:java}
> nifi_backpressure_object_threshold{instance="06b54bc5-0193-1000-5670-9401702949e1",component_type="Connection",component_name="79983e52-2251-3f91-d7cc-6b9a6a9689eb",component_id="79983e52-2251-3f91-d7cc-6b9a6a9689eb",parent_id="89304f0c-484a-34eb-4faf-c651764a3e2c",source_id="8aa608dd-ca4e-395a-e06e-e7f9f5adba5b",source_name="8aa608dd-ca4e-395a-e06e-e7f9f5adba5b",destination_id="efcb5c03-046c-3ddf-7b75-f1dabf647d45",destination_name="efcb5c03-046c-3ddf-7b75-f1dabf647d45",}
>  10000.0
> {code}
>  
> What is expected :
> {noformat}
> nifi_backpressure_object_threshold{instance="nifi",component_type="Connection",component_name="success",component_id="79983e52-2251-3f91-d7cc-6b9a6a9689eb",parent_id="89304f0c-484a-34eb-4faf-c651764a3e2c",source_id="8aa608dd-ca4e-395a-e06e-e7f9f5adba5b",source_name="LOGMETRIC_CorrAttrName_NOT_NUMBER",destination_id="efcb5c03-046c-3ddf-7b75-f1dabf647d45",destination_name="UpdateAttribute",}
>  10000.0{noformat}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to