Added example prometheus config for long-lived tokens (#6688)

This commit is contained in:
Brent Hughes 2018-10-11 16:44:32 -05:00 committed by Franck Nijhof
parent 3f38ecb5df
commit 97444e9292

View File

@ -39,8 +39,14 @@ You can then configure Prometheus to fetch metrics from Home Assistant by adding
- job_name: 'hass'
scrape_interval: 60s
metrics_path: /api/prometheus
# Legacy api password
params:
api_password: ['PASSWORD']
# Long-Lived Access Token
bearer_token: 'your.longlived.token
scheme: https
static_configs:
- targets: ['HOSTNAME:8123']