coreos-home-server/service/prometheus/quadlet/prometheus.container
Alex Palaistras 08b39ff5e2 prometheus: Update version, add node exporter
This includes a complete overhaul of the Containerfile for moving to a
self-contained build based on Bookworm, a move to Quadlet, and the
inclusion of a node exporter for node metrics with a default Grafana
dashboard.
2023-11-19 12:46:42 +00:00

21 lines
516 B
Plaintext

[Unit]
Description=Prometheus Systems and Service Monitoring
Wants=container-build@%N.service container-volume@%N.service
After=container-build@%N.service container-volume@%N.service
[Container]
AutoUpdate=local
ContainerName=%N
HealthCmd=timeout 5s curl --fail --silent --show-error -o /dev/null localhost:9090
Image=localhost/%N:latest
Network=internal
PodmanArgs=--sdnotify=healthy
Volume=%N:/var/lib/%N:z
Volume=%N-service:/etc/%N/service.d:z
[Service]
Restart=on-failure
[Install]
WantedBy=multi-user.target