[
https://issues.apache.org/jira/browse/NIFI-15162?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18039668#comment-18039668
]
ASF subversion and git services commented on NIFI-15162:
--------------------------------------------------------
Commit 2e8927879d87e568ac5407401cb6a325e30fe9c9 in nifi's branch
refs/heads/main from Eric Secules
[ https://gitbox.apache.org/repos/asf?p=nifi.git;h=2e8927879d ]
[NIFI-15162] Add Metrics Strategy parameter to Flow Metrics REST Resource
(#10501)
Co-authored-by: David Handermann <[email protected]>
Signed-off-by: David Handermann <[email protected]>
> 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
> Fix For: 2.7.0
>
> Time Spent: 1h 50m
> Remaining Estimate: 0h
>
> 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)