-
Notifications
You must be signed in to change notification settings - Fork 8
docker-compose file #17
Copy link
Copy link
Open
Description
docker-compose.yml
version: "3.9"
services:
fritzdocsis:
image: quay.io/mulbc/fritzdocsis:latest
container_name: fritzdocsis
network_mode: host
restart: unless-stopped
command:
- -url
- http://192.168.178.1
- -username
- fritz1234
- -password
- verysecurepassword
# If exporter supports listen address/port flags, ensure it's 2112 or adjust Prom targets.
prometheus:
image: docker.io/prom/prometheus:latest
container_name: prometheus
network_mode: host
restart: unless-stopped
volumes:
- ./prometheus.yml:/etc/prometheus/prometheus.yml:ro
- ./prom-data:/prometheus
command:
- --config.file=/etc/prometheus/prometheus.yml
- --storage.tsdb.path=/prometheus
# "No limits" retention: disable time/size bounds
- --storage.tsdb.retention.time=0
- --storage.tsdb.retention.size=0
# Optional performance tuning for frequent scrapes
- --query.max-concurrency=8
- --web.enable-lifecycle
# Smaller head block to flush often (helps memory at high scrape rates)
- --storage.tsdb.min-block-duration=2h
- --storage.tsdb.max-block-duration=2h
grafana:
image: docker.io/grafana/grafana-oss:latest
container_name: grafana
network_mode: host
restart: unless-stopped
volumes:
- ./grafana:/var/lib/grafana
environment:
- GF_SECURITY_ADMIN_USER=admin
- GF_SECURITY_ADMIN_PASSWORD=admin
prometheus.yml
global:
scrape_interval: 5s
scrape_timeout: 4s
evaluation_interval: 5s
scrape_configs:
- job_name: 'fritzdocsis'
static_configs:
- targets: ['127.0.0.1:2112']
Commands
mkdir -p grafana prom-data
chown -R 472:472 grafana
chown -R 65534:65534 prom-data
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels