feat(netdata): add netdata monitoring

This commit is contained in:
redbeardymcgee 2025-01-25 06:50:55 -06:00
parent 989fade8bb
commit 3020be0d56
4 changed files with 42 additions and 0 deletions

View file

@ -0,0 +1,3 @@
[Volume]
VolumeName=netdatacache

View file

@ -0,0 +1,3 @@
[Volume]
VolumeName=netdataconfig

View file

@ -0,0 +1,3 @@
[Volume]
VolumeName=netdatalib

View file

@ -0,0 +1,33 @@
[Unit]
Description=Netdata monitoring
[Service]
Restart=on-failure
TimeoutStartSec=900
[Install]
WantedBy=default.target
[Container]
Image=docker.io/netdata/netdata:stable
ContainerName=netdata
HostName=netdata
AddCapability=SYS_PTRACE
AddCapability=SYS_ADMIN
Network=host
Volume=netdataconfig:/etc/netdata
Volume=netdatalib:/var/lib/netdata
Volume=netdatacache:/var/cache/netdata
Volume=/:/host/root:ro,rslave
Volume=/etc/passwd:/host/etc/passwd:ro
Volume=/etc/group:/host/etc/group:ro
Volume=/etc/localtime:/etc/localtime:ro
Volume=/proc:/host/proc:ro
Volume=/sys:/host/sys:ro
Volume=/etc/os-release:/host/etc/os-release:ro
Volume=/var/log:/host/var/log:ro
Volume=%t/podman/podman.sock:/run/user/1000/podman/podman.sock:ro