summaryrefslogtreecommitdiff
path: root/meta-unit-virtualization/recipes-containers/prometheus-node-exporter/files/prometheus-node-exporter.container
blob: fd28b2661daf9002c11c86ea2ee765b06eb38951 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
[Unit]
Description=A prometheus node exporter container (rootless)

[Container]
ContainerName=prometheus-node-exporter
Image=quay.io/prometheus/node-exporter:latest
Network=host
PodmanArgs=--pid=host
Volume=/:/host:ro,rslave
Volume=/run/dbus/system_bus_socket:/var/run/dbus/system_bus_socket:ro
Exec=--path.rootfs=/host \
--path.procfs=/host/proc \
--collector.systemd \
--collector.systemd.unit-include=".+" \
--collector.processes \
--collector.interrupts \
--collector.interrupts.name-include=".+" \
--collector.tcpstat

[Service]
Restart=on-failure
RestartSec=10s
RestartSteps=5
RestartMaxDelaySec=1min
TimeoutStartSec=15min

[Install]
WantedBy=default.target