monitoring/collectd-extensions
sshathee 6bf4c23db0 Generalize platform pods check using platform label
This commit introduces a check for platform label, which if
present, the cpu and memory for these pods will be
considered in platform resources. Earlier, pod was
considered as part of platform resources by hardcoded namespaces,
which are tiresome to maintain. Now pods are treated as 'platform'
if the namespace is in set of hard-coded namespaces, or if
the component label is 'app.starlingx.io/component=platform'.

Test Plan:
   Pass: Code changes on AIO-SX and collectd was restarted successfully
   Pass: Verify that /var/log/collectd.log contains cpu and memory
  consumption info for platform pods.

Story: 2010904
Task: 48718
Change-Id: Ia8442717009f92dbe022f9512e226913c45d9473
Signed-off-by: sshathee <shunmugam.shatheesh@windriver.com>
2023-09-11 01:55:36 -04:00
..
centos Add new collectd plugin to monitor a service status 2021-11-30 17:12:40 -05:00
debian Update collectd-extensions pkg ver based on git 2023-02-17 18:53:43 +00:00
src Generalize platform pods check using platform label 2023-09-11 01:55:36 -04:00
PKG-INFO Align PKG-INFO for Collectd & Influxdb Extensions 2019-07-15 16:53:36 -04:00