Added Files
This commit is contained in:
parent
a6bc8a5f69
commit
7f140dbd26
64
docker-compose.yml
Normal file
64
docker-compose.yml
Normal file
@ -0,0 +1,64 @@
|
||||
---
|
||||
version: '3'
|
||||
|
||||
services:
|
||||
mon_prometheus:
|
||||
image: prom/prometheus:latest
|
||||
container_name: mon_prometheus
|
||||
restart: unless-stopped
|
||||
volumes:
|
||||
- /etc/localtime:/etc/localtime:ro
|
||||
- /etc/timezone:/etc/timezone:ro
|
||||
- $PWD/prometheus/prometheus.yml:/etc/prometheus/prometheus.yml
|
||||
depends_on:
|
||||
- mon_node-exporter
|
||||
- mon_cadvisor
|
||||
|
||||
mon_node-exporter:
|
||||
image: prom/node-exporter:latest
|
||||
container_name: mon_node-exporter
|
||||
restart: unless-stopped
|
||||
volumes:
|
||||
- /etc/localtime:/etc/localtime:ro
|
||||
- /etc/timezone:/etc/timezone:ro
|
||||
- /proc:/host/proc:ro
|
||||
- /sys:/host/sys:ro
|
||||
- /:/rootfs:ro
|
||||
command:
|
||||
- '--path.procfs=/host/proc'
|
||||
- '--path.sysfs=/host/sys'
|
||||
- '--path.rootfs=/rootfs'
|
||||
- '--collector.filesystem.ignored-mount-points="^(/rootfs|/host|)/(sys|proc|dev|host|etc)($$|/)"'
|
||||
- '--collector.filesystem.ignored-fs-types="^(sys|proc|auto|cgroup|devpts|ns|au|fuse\.lxc|mqueue)(fs|)$$"'
|
||||
|
||||
mon_grafana:
|
||||
image: grafana/grafana:latest
|
||||
container_name: mon_grafana
|
||||
restart: unless-stopped
|
||||
volumes:
|
||||
- /etc/localtime:/etc/localtime:ro
|
||||
- /etc/timezone:/etc/timezone:ro
|
||||
- /var/docker/data/monitoring/grafana:/var/lib/grafana
|
||||
ports:
|
||||
- 3000:3000
|
||||
user: "1000" # USER ID des Docker Users anpassen
|
||||
depends_on:
|
||||
- mon_prometheus
|
||||
labels:
|
||||
- "traefik.enable=true"
|
||||
- "traefik.http.routers.grafana.entrypoints=websecure"
|
||||
- "traefik.http.routers.grafana.rule=Host(`grafana.example.com`)" # Domain anpassen
|
||||
- "traefik.http.routers.grafana.tls=true"
|
||||
- "traefik.http.routers.grafana.tls.certresolver=default"
|
||||
- "traefik.http.routers.grafana.middlewares=secHeaders@file"
|
||||
- "traefik.http.services.grafana.loadbalancer.server.port=3000"
|
||||
networks:
|
||||
- traefik_proxy
|
||||
- default
|
||||
|
||||
networks:
|
||||
traefik_proxy:
|
||||
external:
|
||||
name: traefik_proxy
|
||||
default:
|
||||
driver: bridge
|
2708
fritz-box-status_rev8.json
Normal file
2708
fritz-box-status_rev8.json
Normal file
File diff suppressed because it is too large
Load Diff
1
fritzbox_exporter
Submodule
1
fritzbox_exporter
Submodule
@ -0,0 +1 @@
|
||||
Subproject commit 4d5b0d209506e4516097d7e5fcc3c2aa1213ac5d
|
15
fritzbox_exporter.service
Normal file
15
fritzbox_exporter.service
Normal file
@ -0,0 +1,15 @@
|
||||
[Unit]
|
||||
Description=Prometheus fritzbox exporter
|
||||
After=network.target
|
||||
Wants=network.target
|
||||
|
||||
[Service]
|
||||
User=prometheus
|
||||
Group=prometheus
|
||||
WorkingDirectory=/usr/local/share/exporter
|
||||
ExecStart=/usr/local/share/exporter/fritzbox_exporter -username collectd -password <DeinPasswort> -listen-address 192.168.1.100:9042 -metrics-file /usr/local/share/expoter/exporter/metrics.json
|
||||
Type=simple
|
||||
Restart=always
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
19
prometheus.yml
Normal file
19
prometheus.yml
Normal file
@ -0,0 +1,19 @@
|
||||
---
|
||||
global:
|
||||
scrape_interval: 60s
|
||||
evaluation_interval: 60s
|
||||
external_labels:
|
||||
monitor: 'homelab'
|
||||
rule_files:
|
||||
scrape_configs:
|
||||
- job_name: 'node-exporter'
|
||||
static_configs:
|
||||
- targets: ['mon_node-exporter:9100']
|
||||
|
||||
- job_name: 'cadvisor'
|
||||
static_configs:
|
||||
- targets: ['mon_cadvisor:8080']
|
||||
|
||||
- job_name: 'fritzbox_exporter'
|
||||
static_configs:
|
||||
- targets: ['192.168.1.100:9042']
|
Loading…
Reference in New Issue
Block a user