[ 
https://issues.apache.org/jira/browse/NIFI-15162?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Eric Secules reassigned NIFI-15162:
-----------------------------------

    Assignee: Eric Secules

> Add metricsReportingStrategy to flow metrics endpoint as query parameter
> ------------------------------------------------------------------------
>
>                 Key: NIFI-15162
>                 URL: https://issues.apache.org/jira/browse/NIFI-15162
>             Project: Apache NiFi
>          Issue Type: Improvement
>          Components: Core Framework
>            Reporter: Eric Secules
>            Assignee: Eric Secules
>            Priority: Major
>
> The Prometheus reporting task used to have a Parameter for the metrics 
> reporting strategy to limit metrics collection to just metrics for process 
> groups. The code to handle the reporting strategy still exists. Lets add a 
> query parameter to the flow metrics endpoint so that a user can limit the 
> metrics they're collecting to just those for process groups.
> this will only affect the metrics from the flow registry. 
> it will default to ALL_COMPONENTS (METRICS_STRATEGY_COMPONENTS) reporting 
> strategy
> the other reposting strategy will be ONLY_PROCESS_GROUPS 
> (METRICS_STRATEGY_COMPONENTS)
>  
> Example URL
> {code:java}
> my-nifi.my-company.com/nifi-api/flow/metrics/prometheus?flowMetricsReportingStrategy=ONLY_PROCESS_GROUPS{code}



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

Reply via email to