Update collectd disk usage checks for debian

Update filesystems tracked by collectd:
 - new filesystems in debian: /var, /boot/efi
 - filesystems with different paths in debian: /opt/etcd, /opt/platform,
   /opt/extension, /opt/backups, /scratch
 - add /opt/platform-backup to both centos and debian

Test Plan:
PASS: Centos: verify correct filesystems are monitored by collectd
PASS: Debian: verify correct filesystems are monitored by collectd
PASS: Add additional files to monitored filesystem until usage hit 80%
      and then 90%.  Verify that major and critical alarms are triggered
PASS: Remove additional files and verify that alarm clears when usage
      drops below 80%

Closes-Bug: 1979367
Signed-off-by: Gerry Kopec <gerry.kopec@windriver.com>
Change-Id: Ifc063c29ab825a748516302b231e95ff353e94aa
This commit is contained in:
Gerry Kopec 2022-06-21 13:30:35 -04:00 committed by Gerry Kopec
parent 96e86fedb4
commit c3d70afe3f
2 changed files with 19 additions and 1 deletions

View File

@ -24,6 +24,15 @@
MountPoint "/var/lib/kubelet" MountPoint "/var/lib/kubelet"
MountPoint "/var/lib/nova/instances" MountPoint "/var/lib/nova/instances"
MountPoint "/opt/backups" MountPoint "/opt/backups"
MountPoint "/opt/platform-backup"
MountPoint "/boot/efi"
MountPoint "/var"
MountPoint "/var/rootdirs/opt/etcd"
MountPoint "/var/rootdirs/opt/platform"
MountPoint "/var/rootdirs/opt/extension"
MountPoint "/var/rootdirs/opt/backups"
MountPoint "/var/rootdirs/opt/platform-backup"
MountPoint "/var/rootdirs/scratch"
</Plugin> </Plugin>
<Plugin "threshold"> <Plugin "threshold">

View File

@ -180,7 +180,16 @@ DF_MANGLED_DICT = {
'opt-platform': '/opt/platform', 'opt-platform': '/opt/platform',
'opt-etcd': '/opt/etcd', 'opt-etcd': '/opt/etcd',
'opt-extension': '/opt/extension', 'opt-extension': '/opt/extension',
'opt-backups': '/opt/backups'} 'opt-backups': '/opt/backups',
'opt-platform-backup': '/opt/platform-backup',
'boot-efi': '/boot/efi',
'var': '/var',
'var-rootdirs-opt-etcd': '/var/rootdirs/opt/etcd',
'var-rootdirs-opt-platform': '/var/rootdirs/opt/platform',
'var-rootdirs-opt-extension': '/var/rootdirs/opt/extension',
'var-rootdirs-opt-backups': '/var/rootdirs/opt/backups',
'var-rootdirs-opt-platform-backup': '/var/rootdirs/opt/platform-backup',
'var-rootdirs-scratch': '/var/rootdirs/scratch'}
# ADD_NEW_PLUGIN: add new alarm id definition # ADD_NEW_PLUGIN: add new alarm id definition