937 B
937 B
| layout | title | description | date | sidebar | comments | sharing | logo | footer | ha_category | ha_release |
|---|---|---|---|---|---|---|---|---|---|---|
| page | Prometheus | Record events in Prometheus. | 2017-06-25 08:00 | true | false | true | prometheus.png | true | History | 0.49 |
The prometheus component exposes metrics in a format which Prometheus can read.
To use the prometheus component in your installation, add the following to your configuration.yaml file:
# Example configuration.yaml entry
prometheus:
The Prometheus component has no configuration variables.
You can then configure Prometheus to fetch metrics from Home Assistant by adding to its scrape_configs configuration.
# Example Prometheus scrape_configs entry
- job_name: 'hass'
scrape_interval: 60s
metrics_path: /api/prometheus
params:
api_password: ['PASSWORD']
scheme: https
static_configs:
- targets: ['HOSTNAME:8123']