Add intel-power and power-metrics to list of platform namespaces

The intel-power and power-metrics namespaces are used by
Kubernetes Power Manager [1] and  Power Metrics [2] StarlingX
platform applications. Therefore, their pods have to run at platform
cores.

This change enables collectd logs and kube-memory output to display
cpu and memory consumption from these namespaces.

[1] https://opendev.org/starlingx/app-kubernetes-power-manager
[2] https://opendev.org/starlingx/app-power-metrics

Test Plan:
- PASS: Execute kube-memory tool and ensure its output contains
  intel-power and power-metrics namespace info.
- PASS: Verify that /var/log/collectd.log contains cpu and memory
  consumption info from power-metrics and intel-power namespace
  processes.

Story: 2010773
Task: 48415

Depends-On: https://review.opendev.org/c/starlingx/monitoring/+/887744

Change-Id: Ifefa7950bd9ecb1e4177e44ca51743ae8837fc87
Signed-off-by: Alyson Deives Pereira <alyson.deivespereira@windriver.com>
This commit is contained in:
Alyson Deives Pereira
2023-07-19 19:29:06 -03:00
parent f39d41bb5d
commit 847fad4eb8
2 changed files with 4 additions and 2 deletions

View File

@@ -104,7 +104,8 @@ BASE_GROUPS_EXCLUDE = [CGROUP_K8S, CGROUP_MACHINE]
# Groupings of pods by kubernetes namespace
K8S_NAMESPACE_SYSTEM = ['kube-system', 'armada', 'cert-manager', 'portieris',
'vault', 'notification', 'platform-deployment-manager',
'flux-helm', 'metrics-server', 'node-feature-discovery']
'flux-helm', 'metrics-server', 'node-feature-discovery',
'intel-power', 'power-metrics']
K8S_NAMESPACE_ADDON = ['monitor', 'openstack']
# Pod parent cgroup name based on annotation.