feat(netdata): add netdata monitoring
This commit is contained in:
parent
989fade8bb
commit
3020be0d56
4 changed files with 42 additions and 0 deletions
3
quadlets/netdata/cache.volume
Normal file
3
quadlets/netdata/cache.volume
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
[Volume]
|
||||||
|
VolumeName=netdatacache
|
||||||
|
|
3
quadlets/netdata/config.volume
Normal file
3
quadlets/netdata/config.volume
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
[Volume]
|
||||||
|
VolumeName=netdataconfig
|
||||||
|
|
3
quadlets/netdata/lib.volume
Normal file
3
quadlets/netdata/lib.volume
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
[Volume]
|
||||||
|
VolumeName=netdatalib
|
||||||
|
|
33
quadlets/netdata/netdata.container
Normal file
33
quadlets/netdata/netdata.container
Normal 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
|
||||||
|
|
Loading…
Add table
Reference in a new issue