mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-24 09:46:59 +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'
|
||||
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']
|
||||
|
Loading…
x
Reference in New Issue
Block a user