From 587da7b8e1b34211de5fc6ec36d4e6e609063133 Mon Sep 17 00:00:00 2001 From: Joey Hafner Date: Wed, 11 May 2022 01:35:59 -0700 Subject: [PATCH] Implement sabnzbd_exporter init --- homelab/server/config/autopirate/docker-compose.yml | 6 ++++-- homelab/server/config/prometheus/docker-compose.yml | 12 +++++++++++- 2 files changed, 15 insertions(+), 3 deletions(-) diff --git a/homelab/server/config/autopirate/docker-compose.yml b/homelab/server/config/autopirate/docker-compose.yml index 916c992d..651ff54c 100644 --- a/homelab/server/config/autopirate/docker-compose.yml +++ b/homelab/server/config/autopirate/docker-compose.yml @@ -18,6 +18,7 @@ services: - traefik.http.routers.radarr.tls.certresolver=lets-encrypt - traefik.http.services.radarr.loadbalancer.server.port=7878 - traefik.http.routers.radarr.middlewares=lan-only@file + sonarr: image: linuxserver/sonarr container_name: autopirate_sonarr @@ -79,6 +80,7 @@ services: container_name: autopirate_sabnzbd networks: - web + - monitoring environment: - PUID=1000 - PGID=1000 @@ -95,7 +97,6 @@ services: - traefik.http.services.sabnzbd.loadbalancer.server.port=8080 - traefik.http.routers.sabnzbd.middlewares=lan-only@file - tdarr: image: haveagitgat/tdarr:latest container_name: autopirate_tdarr @@ -169,4 +170,5 @@ networks: - subnet: "172.110.0.0/24" web: external: true - + monitoring: + external: true \ No newline at end of file diff --git a/homelab/server/config/prometheus/docker-compose.yml b/homelab/server/config/prometheus/docker-compose.yml index 2e86c12d..e66d2ee1 100644 --- a/homelab/server/config/prometheus/docker-compose.yml +++ b/homelab/server/config/prometheus/docker-compose.yml @@ -56,7 +56,17 @@ services: - "--auto-discover" labels: - traefik.enable=false - + + sabnzbd_exporter: + image: msroest/sabnzbd_exporter # https://github.com/msroest/sabnzbd_exporter + container_name: monitoring_sabnzbd_exporter + restart: unless-stopped + networks: + - monitoring + environment: + - SABNZBD_BASEURLS=https://sabnzbd.jafner.net:443 + - SABNZBD_APIKEYS=***REMOVED*** + networks: monitoring: