Add vnstat for throughput monitoring.

This commit is contained in:
Joseph Hanson 2024-03-23 15:09:14 -05:00
parent d2ebf7db4d
commit 9565764c08
Signed by: jahanson
SSH key fingerprint: SHA256:vy6dKBECV522aPAwklFM3ReKAVB086rT3oWwiuiFG7o
4 changed files with 18 additions and 0 deletions

View file

@ -125,3 +125,14 @@ set container name onepassword-sync volume credentials mode 'ro'
set container name onepassword-sync volume data source '/tmp/onepassword/data' set container name onepassword-sync volume data source '/tmp/onepassword/data'
set container name onepassword-sync volume data destination '/home/opuser/.op/data' set container name onepassword-sync volume data destination '/home/opuser/.op/data'
set container name onepassword-sync volume data mode 'rw' set container name onepassword-sync volume data mode 'rw'
# vnstat
set container name vnstat allow-host-networks
set container name vnstat environment EXCLUDE_PATTERN value '^docker|^veth|^br-|^lxc'
set container name vnstat environment TZ value 'America/Chicago'
set container name vnstat image 'ghcr.io/vergoh/vnstat:2.12'
set container name vnstat memory '0'
set container name vnstat shared-memory '0'
set container name vnstat volume vnstat-data destination '/var/lib/vnstat'
set container name vnstat volume vnstat-data mode 'rw'
set container name vnstat volume vnstat-data source '/config/containers/vnstat/data'

View file

@ -9,3 +9,4 @@
!/haproxy/ !/haproxy/
!/unifi/ !/unifi/
!/vector-agent/ !/vector-agent/
!/vnstat/

6
containers/vnstat/.gitignore vendored Normal file
View file

@ -0,0 +1,6 @@
# Ignore everything
/*
# Track certain files and directories
!.gitignore
!.gitkeep

View file