Use credentials file for Dawarich metrics scrape
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user