mirror of
https://github.com/deuill/coreos-home-server.git
synced 2024-09-21 13:40:45 +00:00
Alex Palaistras
08b39ff5e2
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.
22 lines
529 B
Plaintext
22 lines
529 B
Plaintext
[Unit]
|
|
Description=Prometheus Node Metrics Exporter
|
|
Wants=grafana-dashboard@prometheus.service
|
|
After=grafana-dashboard@prometheus.service
|
|
|
|
[Container]
|
|
AutoUpdate=local
|
|
AddCapability=SYS_TIME
|
|
ContainerName=%N
|
|
Exec=--path.rootfs=/host
|
|
HealthCmd=timeout 5s curl --fail --silent --show-error -o /dev/null localhost:9100
|
|
Image=localhost/prometheus:latest
|
|
Network=host
|
|
PodmanArgs=--pid host --sdnotify=healthy --entrypoint /bin/node_exporter
|
|
Volume=/:/host:ro,rslave
|
|
|
|
[Service]
|
|
Restart=on-failure
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|