[
https://issues.apache.org/jira/browse/NIFI-15162?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Eric Secules updated NIFI-15162:
--------------------------------
Description:
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
the other reposting strategy will be ALL_PROCESS_GROUPS
Example URL
{code:java}
my-nifi.my-company.com/nifi-api/flow/metrics/prometheus?flowMetricsReportingStrategy=ALL_PROCESS_GROUPS{code}
was:
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}
Updated the description to match what was implemented
> 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
> the other reposting strategy will be ALL_PROCESS_GROUPS
>
> Example URL
> {code:java}
> my-nifi.my-company.com/nifi-api/flow/metrics/prometheus?flowMetricsReportingStrategy=ALL_PROCESS_GROUPS{code}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)