mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-25 10:17:23 +00:00
Added example prometheus config for long-lived tokens (#6688)
This commit is contained in:
parent
3f38ecb5df
commit
97444e9292
@ -39,8 +39,14 @@ You can then configure Prometheus to fetch metrics from Home Assistant by adding
|
|||||||
- job_name: 'hass'
|
- job_name: 'hass'
|
||||||
scrape_interval: 60s
|
scrape_interval: 60s
|
||||||
metrics_path: /api/prometheus
|
metrics_path: /api/prometheus
|
||||||
|
|
||||||
|
# Legacy api password
|
||||||
params:
|
params:
|
||||||
api_password: ['PASSWORD']
|
api_password: ['PASSWORD']
|
||||||
|
|
||||||
|
# Long-Lived Access Token
|
||||||
|
bearer_token: 'your.longlived.token
|
||||||
|
|
||||||
scheme: https
|
scheme: https
|
||||||
static_configs:
|
static_configs:
|
||||||
- targets: ['HOSTNAME:8123']
|
- targets: ['HOSTNAME:8123']
|
||||||
|
Loading…
x
Reference in New Issue
Block a user