Prometheus metrics and configuration
Itential Platform exposes system metrics for scraping via the /prometheus_metrics route. A Prometheus server can be configured to scrape this route and visualize the data in charts and graphs.
Prometheus collects time series numeric data, which is useful for testing and diagnostic purposes such as during an Itential Platform outage. Metrics are returned in a text exposition format understood by Prometheus servers of any version:
Configuration file
Prometheus servers are configured using a .yml file (default: prometheus.yml). The metrics_path option must be changed to /prometheus_metrics since Prometheus scrapes /metrics by default. See the Prometheus configuration docs for more information.
Itential recommends securing your endpoint by:
- Adding basic authentication to requests for the
/prometheus_metricsendpoint. - Enabling TLS client authentication and requiring all Prometheus clients to present valid certificates.
See Prometheus Security for further reading.
Example prometheus.yml: