Fix an issue with prometheus scraping itself

Closes-Bug: #2043829
Change-Id: Ic4cbaf592a2699d9c0312c575f68613c8681239f
This commit is contained in:
Will Szumski 2023-11-17 18:25:12 +00:00
parent 48db509042
commit 775fac2b10
2 changed files with 8 additions and 0 deletions

View File

@ -18,6 +18,9 @@ rule_files:
scrape_configs:
- job_name: prometheus
basic_auth:
username: admin
password: "{{ prometheus_password }}"
static_configs:
{% for host in groups['prometheus'] %}
- targets:

View File

@ -0,0 +1,5 @@
---
fixes:
- |
Fixes an issue with prometheus scraping itself now that basic auth has
been enabled.