Yuanhao Zhu created NIFI-14589:
----------------------------------
Summary: Make prometheus metrics instance id configurable
Key: NIFI-14589
URL: https://issues.apache.org/jira/browse/NIFI-14589
Project: Apache NiFi
Issue Type: Improvement
Reporter: Yuanhao Zhu
In 2.x nifi, the prometheus metrics uses the instance id/node id in the metrics
data, while in nifi 1.x, in the corresponding component
PrometheusReportingTask, we can actually configure the instance id presented in
the metrics. It would be great to also align that behavior in the 2.x nifi-api
prometheus metrics by making the instance id configurable so that when getting
the metrics, we can have two options, use the instance/node id, or use a
instance id/name that we assign, which is extremely helpful to analyze the
metrics in databases.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)