2023-11-19 12:46:42 +00:00
|
|
|
[Unit]
|
|
|
|
Description=Prometheus Node Metrics Exporter
|
|
|
|
Wants=grafana-dashboard@prometheus.service
|
|
|
|
After=grafana-dashboard@prometheus.service
|
|
|
|
|
|
|
|
[Container]
|
|
|
|
AutoUpdate=local
|
|
|
|
AddCapability=SYS_TIME
|
|
|
|
ContainerName=%N
|
2023-12-01 15:31:52 +00:00
|
|
|
Environment=DBUS_SYSTEM_BUS_ADDRESS=unix:path=/host/var/run/dbus/system_bus_socket
|
|
|
|
Exec=--path.rootfs=/host --collector.systemd
|
2023-11-19 12:46:42 +00:00
|
|
|
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
|