From a202746670b309a99fb844d1f5398825a8a43776 Mon Sep 17 00:00:00 2001 From: Danny Tsang <567982+dannytsang@users.noreply.github.com> Date: Sun, 27 Mar 2022 12:12:22 +0100 Subject: [PATCH] Added link to generating a long lived token for Prometheus integration (#22127) --- source/_integrations/prometheus.markdown | 2 ++ 1 file changed, 2 insertions(+) diff --git a/source/_integrations/prometheus.markdown b/source/_integrations/prometheus.markdown index b75a7403fcb..a587b31d609 100644 --- a/source/_integrations/prometheus.markdown +++ b/source/_integrations/prometheus.markdown @@ -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