From 5a9539bd7a25c7f21827356e7304d636526340e7 Mon Sep 17 00:00:00 2001 From: Christian Steinle Date: Fri, 16 Sep 2022 11:35:21 +0200 Subject: [PATCH] Add basic auth for endpoints. --- prometheus.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/prometheus.yml b/prometheus.yml index 0dfb0d7..c89d00e 100644 --- a/prometheus.yml +++ b/prometheus.yml @@ -6,13 +6,19 @@ scrape_configs: - job_name: prometheus static_configs: - targets: ['prometheus.steinle-computer.de'] + basic_auth: + username: chris + password: 9VJqWNxku4hHdB2zhjk4GHyMLQHCZX - job_name: node-exporter static_configs: - targets: ['node-exporter.steinle-computer.de'] + basic_auth: + username: chris + password: 9VJqWNxku4hHdB2zhjk4GHyMLQHCZX - job_name: traefik static_configs: - targets: ['traefik.steinle-computer.de'] basic_auth: username: chris password: 9VJqWNxku4hHdB2zhjk4GHyMLQHCZX - \ No newline at end of file +