2022-02-08 17:00:27 -08:00
|
|
|
version: '3'
|
|
|
|
services:
|
2022-07-13 13:35:56 -07:00
|
|
|
grafana:
|
|
|
|
image: grafana/grafana-oss:latest
|
|
|
|
container_name: monitoring_grafana
|
|
|
|
logging:
|
|
|
|
driver: loki
|
|
|
|
options:
|
|
|
|
loki-url: http://localhost:3100/loki/api/v1/push
|
|
|
|
loki-batch-size: "50"
|
|
|
|
loki-retries: "1"
|
|
|
|
loki-timeout: "2s"
|
2022-07-14 15:22:44 -07:00
|
|
|
keep-file: "true"
|
2022-07-13 13:35:56 -07:00
|
|
|
restart: "no"
|
|
|
|
networks:
|
|
|
|
- monitoring
|
|
|
|
- web
|
|
|
|
user: "0"
|
|
|
|
volumes:
|
|
|
|
- ${DOCKER_DATA}/grafana:/var/lib/grafana
|
|
|
|
- ./custom.ini:/etc/grafana/grafana.ini
|
|
|
|
labels:
|
|
|
|
- traefik.http.routers.grafana.rule=Host(`grafana.jafner.net`)
|
|
|
|
- traefik.http.routers.grafana.tls.certresolver=lets-encrypt
|
|
|
|
#- traefik.http.routers.grafana.middlewares=authelia@file
|
2022-05-12 21:36:21 -07:00
|
|
|
|
2022-07-13 13:35:56 -07:00
|
|
|
prometheus:
|
|
|
|
image: prom/prometheus:latest
|
|
|
|
container_name: monitoring_prometheus
|
|
|
|
logging:
|
|
|
|
driver: loki
|
|
|
|
options:
|
|
|
|
loki-url: http://localhost:3100/loki/api/v1/push
|
|
|
|
loki-batch-size: "50"
|
|
|
|
loki-retries: "1"
|
|
|
|
loki-timeout: "2s"
|
2022-07-14 15:22:44 -07:00
|
|
|
keep-file: "true"
|
2022-07-13 13:35:56 -07:00
|
|
|
user: "1000:1000"
|
|
|
|
networks:
|
|
|
|
- monitoring
|
|
|
|
- web
|
|
|
|
ports:
|
|
|
|
- 9090:9090
|
|
|
|
volumes:
|
|
|
|
- ./prometheus.yml:/etc/prometheus/prometheus.yml
|
|
|
|
- ${DOCKER_DATA}/prometheus:/prometheus
|
|
|
|
restart: "no"
|
|
|
|
command:
|
|
|
|
- "--config.file=/etc/prometheus/prometheus.yml"
|
|
|
|
labels:
|
|
|
|
- traefik.http.routers.prometheus-monitoring.rule=Host(`prometheus.jafner.net`)
|
|
|
|
- traefik.http.routers.prometheus-monitoring.tls.certresolver=lets-encrypt
|
2022-07-15 10:56:20 -07:00
|
|
|
#- traefik.http.routers.prometheus-monitoring.middlewares=
|
2022-07-13 13:35:56 -07:00
|
|
|
|
|
|
|
loki:
|
|
|
|
image: grafana/loki:2.5.0
|
|
|
|
container_name: monitoring_loki
|
2022-07-15 00:02:56 -07:00
|
|
|
user: 1000:1000
|
2022-07-13 13:35:56 -07:00
|
|
|
logging:
|
|
|
|
driver: loki
|
|
|
|
options:
|
|
|
|
loki-url: http://localhost:3100/loki/api/v1/push
|
|
|
|
loki-batch-size: "50"
|
|
|
|
loki-retries: "1"
|
|
|
|
loki-timeout: "2s"
|
2022-07-14 15:22:44 -07:00
|
|
|
keep-file: "true"
|
2022-07-13 13:35:56 -07:00
|
|
|
networks:
|
|
|
|
- monitoring
|
|
|
|
- web
|
|
|
|
ports:
|
|
|
|
- "3100:3100"
|
|
|
|
volumes:
|
2022-07-14 14:10:08 -07:00
|
|
|
- ${DOCKER_DATA}/loki-logs:/loki-logs
|
2022-07-13 13:35:56 -07:00
|
|
|
- ./loki-config.yml:/etc/loki/loki-config.yml # not sure if this works. If not, just edit the config within the data volume
|
|
|
|
restart: "no"
|
|
|
|
command: -config.file=/etc/loki/loki-config.yml
|
|
|
|
labels:
|
|
|
|
- traefik.http.routers.loki.rule=Host(`loki.jafner.net`)
|
|
|
|
- traefik.http.routers.loki.tls.certresolver=lets-encrypt
|
2022-07-07 23:12:57 -07:00
|
|
|
|
2022-07-13 13:35:56 -07:00
|
|
|
pihole-jafner-net:
|
|
|
|
image: ekofr/pihole-exporter:latest
|
|
|
|
container_name: monitoring_prometheus-pihole-jafner-net
|
|
|
|
logging:
|
|
|
|
driver: loki
|
|
|
|
options:
|
|
|
|
loki-url: http://localhost:3100/loki/api/v1/push
|
|
|
|
loki-batch-size: "50"
|
|
|
|
loki-retries: "1"
|
|
|
|
loki-timeout: "2s"
|
2022-07-14 15:22:44 -07:00
|
|
|
keep-file: "true"
|
2022-07-13 13:35:56 -07:00
|
|
|
restart: "no"
|
|
|
|
networks:
|
|
|
|
- monitoring
|
|
|
|
environment:
|
2022-07-14 00:07:54 -07:00
|
|
|
- PIHOLE_HOSTNAME=pihole.jafner.net
|
|
|
|
- PIHOLE_PROTOCOL=https
|
|
|
|
- INTERVAL=15s
|
|
|
|
- PORT=9617 # port on which the metrics should be available to be scraped by prometheus
|
2022-07-13 13:35:56 -07:00
|
|
|
labels:
|
|
|
|
- traefik.enable=false
|
2022-02-08 17:00:27 -08:00
|
|
|
|
2022-07-13 13:35:56 -07:00
|
|
|
mc-monitor:
|
|
|
|
image: itzg/mc-monitor # https://github.com/itzg/mc-monitor
|
|
|
|
container_name: monitoring_mc-monitor
|
|
|
|
logging:
|
|
|
|
driver: loki
|
|
|
|
options:
|
|
|
|
loki-url: http://localhost:3100/loki/api/v1/push
|
|
|
|
loki-batch-size: "50"
|
|
|
|
loki-retries: "1"
|
|
|
|
loki-timeout: "2s"
|
2022-07-14 15:22:44 -07:00
|
|
|
keep-file: "true"
|
2022-07-13 13:35:56 -07:00
|
|
|
command: export-for-prometheus
|
|
|
|
restart: "no"
|
|
|
|
networks:
|
|
|
|
- monitoring
|
|
|
|
- mc-router
|
|
|
|
environment:
|
|
|
|
EXPORT_SERVERS: e6-056,vanilla,bmcp,e6,e6-dev,fan
|
|
|
|
labels:
|
|
|
|
- traefik.enable=false
|
2022-02-08 17:00:27 -08:00
|
|
|
|
2022-07-13 13:35:56 -07:00
|
|
|
plex-exporter:
|
|
|
|
image: granra/plex_exporter
|
|
|
|
container_name: monitoring_plex-exporter
|
|
|
|
logging:
|
|
|
|
driver: loki
|
|
|
|
options:
|
|
|
|
loki-url: http://localhost:3100/loki/api/v1/push
|
|
|
|
loki-batch-size: "50"
|
|
|
|
loki-retries: "1"
|
|
|
|
loki-timeout: "2s"
|
2022-07-14 15:22:44 -07:00
|
|
|
keep-file: "true"
|
2022-07-13 13:35:56 -07:00
|
|
|
restart: "no"
|
|
|
|
networks:
|
|
|
|
- monitoring
|
|
|
|
command:
|
|
|
|
- "--plex-server=https://plex.jafner.net"
|
|
|
|
- "--token=5PLsbzsQTXomf88sKyGr"
|
|
|
|
- "--auto-discover"
|
|
|
|
labels:
|
|
|
|
- traefik.enable=false
|
2022-05-11 01:35:59 -07:00
|
|
|
|
2022-07-13 13:35:56 -07:00
|
|
|
sabnzbd_exporter:
|
|
|
|
image: msroest/sabnzbd_exporter # https://github.com/msroest/sabnzbd_exporter
|
|
|
|
container_name: monitoring_sabnzbd_exporter
|
|
|
|
logging:
|
|
|
|
driver: loki
|
|
|
|
options:
|
|
|
|
loki-url: http://localhost:3100/loki/api/v1/push
|
|
|
|
loki-batch-size: "50"
|
|
|
|
loki-retries: "1"
|
|
|
|
loki-timeout: "2s"
|
2022-07-14 15:22:44 -07:00
|
|
|
keep-file: "true"
|
2022-07-13 13:35:56 -07:00
|
|
|
restart: "no"
|
|
|
|
networks:
|
|
|
|
- monitoring
|
|
|
|
environment:
|
|
|
|
- SABNZBD_BASEURLS=https://sabnzbd.jafner.net:443
|
|
|
|
- SABNZBD_APIKEYS=b7af57a920014eb08aa3881fc0384c4f
|
2022-05-11 01:35:59 -07:00
|
|
|
|
2022-05-03 14:29:03 -07:00
|
|
|
|
2022-02-08 17:00:27 -08:00
|
|
|
networks:
|
2022-07-13 13:35:56 -07:00
|
|
|
monitoring:
|
|
|
|
external: true
|
|
|
|
web:
|
|
|
|
external: true
|
|
|
|
mc-router:
|
|
|
|
external: true
|