Use credentials file for Dawarich metrics scrape

This commit is contained in:
2026-06-21 23:00:00 +02:00
parent 699b1f118e
commit 4cf9e3226e
6 changed files with 16 additions and 9 deletions
+3 -1
View File
@@ -22,7 +22,7 @@ services:
expose:
- "9090"
secrets:
- source: dawarich_metrics_password
- source: dawarich_metrics_basic_auth
mode: 0444
security_opt:
- no-new-privileges:true
@@ -421,5 +421,7 @@ secrets:
file: /mnt/user/appdata/secrets/influxdb3_admin_token.json
dawarich_metrics_password:
file: /mnt/user/appdata/secrets/dawarich_metrics_password.txt
dawarich_metrics_basic_auth:
file: /mnt/user/appdata/secrets/dawarich_metrics_basic_auth.txt
dawarich_grafana_ro_password:
file: /mnt/user/appdata/secrets/dawarich_grafana_ro_password.txt
+3 -3
View File
@@ -39,9 +39,9 @@ scrape_configs:
- job_name: dawarich
metrics_path: /metrics
scheme: https
basic_auth:
username: prometheus
password_file: /run/secrets/dawarich_metrics_password
authorization:
type: Basic
credentials_file: /run/secrets/dawarich_metrics_basic_auth
static_configs:
# Dawarich >= 1.7.7 serves aggregated web + Sidekiq metrics here.
- targets: