This component is deprecated and will be removed in NiFi 2.x.
Please consider using one the following alternatives: No alternative components suggested.
Reports metrics in Prometheus format by creating a /metrics HTTP(S) endpoint which can be used for external monitoring of the application. The reporting task reports a set of metrics regarding the JVM (optional) and the NiFi instance. Note that if the underlying Jetty server (i.e. the Prometheus endpoint) cannot be started (for example if two PrometheusReportingTask instances are started on the same port), this may cause a delay in shutting down NiFi while it waits for the server resources to be cleaned up.
reporting, prometheus, metrics, time series data
In the list below, the names of required properties appear in bold. Any other properties (not in bold) are considered optional. The table also indicates any default values, and whether a property supports the NiFi Expression Language.
| Display Name | API Name | Default Value | Allowable Values | Description |
|---|---|---|---|---|
| Prometheus Metrics Endpoint Port | prometheus-reporting-task-metrics-endpoint-port | 9092 | The Port where prometheus metrics can be accessed Supports Expression Language: true (will be evaluated using variable registry only) | |
| Instance ID | prometheus-reporting-task-instance-id | ${hostname(true)} | Id of this NiFi instance to be included in the metrics sent to Prometheus Supports Expression Language: true (will be evaluated using variable registry only) | |
| Metrics Reporting Strategy | prometheus-reporting-task-metrics-strategy | All Components |
| The granularity on which to report metrics. Options include only the root process group, all process groups, or all components |
| Send JVM metrics | prometheus-reporting-task-metrics-send-jvm | false |
| Send JVM metrics in addition to the NiFi metrics |
| SSL Context Service | prometheus-reporting-task-ssl-context | Controller Service API: RestrictedSSLContextService Implementation: StandardRestrictedSSLContextService | The SSL Context Service to use in order to secure the server. If specified, the server willaccept only HTTPS requests; otherwise, the server will accept only HTTP requests | |
| Client Authentication | prometheus-reporting-task-client-auth | No Authentication |
| Specifies whether or not the Reporting Task should authenticate clients. This value is ignored if the <SSL Context Service> Property is not specified or the SSL Context provided uses only a KeyStore and not a TrustStore. |