With the advent of
NIFI-6780, a RecordSinkService controller service interface is available and is used by components like QueryNiFiReportingTask to decouple the collection of data from its destination or transmission method. Initial implementations in NIFI-6780 included a Site-to-Site record sink as well as a DatabaseRecordSink for writing to RDBMS targets.
This Jira proposes to add a RecordSinkService implementation to enable Prometheus scraping. The PrometheusReportingTask exists (via
NIFI-5435) to allow scraping of many available metrics, but a PrometheusRecordSink would allow scraping of these plus derived metrics (via SQL queries executed by QueryNiFiReportingTask) and analytical metrics such as connection status predictions (Time-to-Backpressure, e.g.).