Added link to generating a long lived token for Prometheus integration (#22127)

This commit is contained in:
Danny Tsang 2022-03-27 12:12:22 +01:00 committed by GitHub
parent b618ac4675
commit a202746670
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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