prometheus: use basic auth secrets

This commit is contained in:
2025-04-29 16:20:49 -04:00
parent fb98af82b6
commit 975d23f9fd
2 changed files with 5 additions and 1 deletions

View File

@@ -26,4 +26,7 @@ scrape_configs:
# scheme defaults to 'http'.
static_configs:
- targets: ["localhost:9090"]
- targets: ["localhost:9090"]
basic_auth:
username: prometheus
password_file: /etc/prometheus/.basicauthpass