config(docker_compose): add diun metrics to prometheus and grafana
This commit is contained in:
1 parent
ec44b53a53
commit
4b4b0fcb5f
3 files changed
+30
-9
No files matched your search
@@ -17,6 +17,11 @@ services:
|
||||
DIUN_PROVIDERS_DOCKER: "true"
|
||||
DIUN_PROVIDERS_DOCKER_WATCHBYDEFAULT: "true"
|
||||
|
||||
# Metrics
|
||||
|
||||
DIUN_METRICS_ENABLED: "true"
|
||||
DIUN_METRICS_ADDR: ":9090"
|
||||
DIUN_METRICS_TOKEN: "Qj#8C!@Uz3uRWm@mCd@KH6Bo7nfQ4K"
|
||||
# Email notifications
|
||||
DIUN_NOTIF_MAIL_HOST: smtp.web.de
|
||||
DIUN_NOTIF_MAIL_PORT: 587
|
||||
@@ -30,4 +35,9 @@ services:
|
||||
options:
|
||||
max-size: "10m"
|
||||
max-file: "3"
|
||||
networks:
|
||||
- shared-prometheus-services
|
||||
networks:
|
||||
shared-prometheus-services:
|
||||
external: true
|
||||
|
||||
@@ -10,15 +10,13 @@ services:
|
||||
- prometheus-data:/prometheus
|
||||
networks:
|
||||
- default
|
||||
- shared-proxy-services
|
||||
|
||||
- shared-prometheus-services
|
||||
grafana:
|
||||
image: grafana/grafana:latest
|
||||
container_name: grafana
|
||||
restart: unless-stopped
|
||||
ports:
|
||||
- "3000:3000"
|
||||
|
||||
environment:
|
||||
GF_SECURITY_ADMIN_USER: lucas
|
||||
GF_SECURITY_ADMIN_PASSWORD: Mira2012
|
||||
@@ -186,7 +184,10 @@ volumes:
|
||||
grafana-data:
|
||||
networks:
|
||||
default:
|
||||
shared-proxy-services:
|
||||
external: true
|
||||
mediarr-services:
|
||||
external: true
|
||||
shared-proxy-services:
|
||||
external: true
|
||||
shared-prometheus-services:
|
||||
external: true
|
||||
|
||||
@@ -8,10 +8,6 @@ scrape_configs:
|
||||
static_configs:
|
||||
- targets:
|
||||
- "prometheus:9090"
|
||||
- job_name: "nginx"
|
||||
static_configs:
|
||||
- targets:
|
||||
- nginx-exporter:9113
|
||||
- job_name: blackbox_https
|
||||
metrics_path: /probe
|
||||
params:
|
||||
@@ -99,3 +95,17 @@ scrape_configs:
|
||||
static_configs:
|
||||
- targets:
|
||||
- listenarr-exporter:9712
|
||||
|
||||
- job_name: diun
|
||||
metrics_path: /metrics
|
||||
authorization:
|
||||
credentials: "Qj#8C!@Uz3uRWm@mCd@KH6Bo7nfQ4K"
|
||||
static_configs:
|
||||
- targets:
|
||||
- diun:9090
|
||||
labels:
|
||||
host: "mediahost"
|
||||
- targets:
|
||||
- "192.168.0.2:9090"
|
||||
labels:
|
||||
host: "mediahost"
|
||||
Reference in new issue
Block a user