mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-17 06:16:50 +00:00
Added link to generating a long lived token for Prometheus integration (#22127)
This commit is contained in:
parent
b618ac4675
commit
a202746670
@ -173,6 +173,8 @@ You can then configure Prometheus to fetch metrics from Home Assistant by adding
|
||||
- targets: ['HOSTNAME:8123']
|
||||
```
|
||||
|
||||
Replace `your.longlived.token` with a Home Assistant [generated token](https://developers.home-assistant.io/docs/auth_api/#long-lived-access-token).
|
||||
|
||||
The format to configure the bearer token has changed in Prometheus 2.26, so if you have a newer version, you can use this configuration sample:
|
||||
|
||||
```yaml
|
||||
|
Loading…
x
Reference in New Issue
Block a user