[
https://issues.apache.org/jira/browse/NIFI-8272?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17458626#comment-17458626
]
ASF subversion and git services commented on NIFI-8272:
-------------------------------------------------------
Commit cffd05e3727aea8413b56895e0f8cc2885143abc in nifi's branch
refs/heads/support/nifi-1.15 from noblenumbat360
[ https://gitbox.apache.org/repos/asf?p=nifi.git;h=cffd05e ]
NIFI-8272 Delete stale metrics from REST API Prometheus endpoint.
Added <scope>test</scope> tag to the nifi-web-api pom.xml and corrected imports.
> Deleted/renamed metrics are still being shown in the REST API Prometheus
> endpoint
> ---------------------------------------------------------------------------------
>
> Key: NIFI-8272
> URL: https://issues.apache.org/jira/browse/NIFI-8272
> Project: Apache NiFi
> Issue Type: Bug
> Reporter: Noble Numbat
> Assignee: Noble Numbat
> Priority: Minor
> Labels: REST_API, metrics, prometheus
> Fix For: 1.16.0, 1.15.1
>
> Time Spent: 1h 20m
> Remaining Estimate: 0h
>
> Processors, connections, funnels, etc that have been deleted/renamed from a
> flow are still being shown in the REST API Prometheus metrics endpoint at
> their last reported value before they were deleted/renamed.
> I checked the PrometheusReportingTask and deleted items are not displayed in
> the metrics output as I would expect is the correct behaviour.
> The bug can be replicated with a flow as simple as a single processor by
> deleting the processor and observing the metrics still included on subsequent
> calls to the endpoint.
--
This message was sent by Atlassian Jira
(v8.20.1#820001)