51 lines
1.4 KiB
YAML
51 lines
1.4 KiB
YAML
services:
|
|
# Hardware-Metriken
|
|
node-exporter:
|
|
image: prom/node-exporter:latest
|
|
container_name: monitoring-node-exporter
|
|
command:
|
|
- '--path.procfs=/host/proc'
|
|
- '--path.rootfs=/rootfs'
|
|
- '--path.sysfs=/host/sys'
|
|
volumes:
|
|
- /proc:/host/proc:ro
|
|
- /sys:/host/sys:ro
|
|
- /:/rootfs:ro
|
|
restart: unless-stopped
|
|
|
|
# Container-Metriken
|
|
cadvisor:
|
|
image: gcr.io/cadvisor/cadvisor:latest
|
|
container_name: monitoring-cadvisor
|
|
volumes:
|
|
- /:/rootfs:ro
|
|
- /var/run:/var/run:ro
|
|
- /sys:/sys:ro
|
|
- /var/lib/docker/:/var/lib/docker:ro
|
|
- /dev/disk/:/dev/disk:ro
|
|
restart: unless-stopped
|
|
|
|
pterodactyl-exporter:
|
|
image: loens2/pterodactyl_exporter:latest
|
|
container_name: monitoring-pterodactyl-exporter
|
|
restart: unless-stopped
|
|
environment:
|
|
- PTERODACTYL_URL=https://game.axion1337.de
|
|
- PTERODACTYL_TOKEN=ptla_PEA3bKvSwLBLcPBKo7IwRlNzbhm44e5mb5OJvb4IGSe
|
|
# Falls du ein selbstsigniertes Zertifikat nutzt:
|
|
# - PTERODACTYL_INSECURE=true
|
|
networks:
|
|
- monitoring-network
|
|
|
|
# Der "Collector" (Alloy)
|
|
alloy:
|
|
image: grafana/alloy:latest
|
|
container_name: monitoring-alloy
|
|
volumes:
|
|
- ./config.alloy:/etc/alloy/config.alloy
|
|
command: run --server.http.listen-addr=0.0.0.0:12345 /etc/alloy/config.alloy
|
|
restart: unless-stopped
|
|
depends_on:
|
|
- pterodactyl-exporter
|
|
- node-exporter
|
|
- cadvisor |