From 97444e929293ed627a4e27fa5c3551e9db8fa773 Mon Sep 17 00:00:00 2001 From: Brent Hughes Date: Thu, 11 Oct 2018 16:44:32 -0500 Subject: [PATCH] Added example prometheus config for long-lived tokens (#6688) --- source/_components/prometheus.markdown | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/source/_components/prometheus.markdown b/source/_components/prometheus.markdown index 42eddb45996..ea36b0278df 100644 --- a/source/_components/prometheus.markdown +++ b/source/_components/prometheus.markdown @@ -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']