In CDM CPU Enhanced Template even though we only enable CPU Individual Usage, also User, System, Wait and Idle Metrics are collected.
***
Steps to Reproduce:
1. Create an CPU Monitor (Enhanced) and only enable 1 QOS: Individual CPU Usage
2. Check plugin metric.cfg:
<CPU_Multi_Usage>
subsys =
qos_source = ~.*
qos_label = Individual CPU Usage
alarm = false
publish_qos = true
qos_target = ~.*
qos_name = QOS_CPU_MULTI_USAGE
publish_baseline = false
</CPU_Multi_Usage>
3. Check DB. All targets for QOS_CPU_MULTI_USAGE are monitored (wait, idle, system users).
The Expectation would be that only server target is monitored.
This issue is reproducible in UIM 20.3.3, UIM 20.4CU4/5/6/7/8/9 with MSSQL and MYsql
CDM probe 6.71 / 6.82-MC / 7.11
Template 6.71.1 / 6.84
Template 7.10.1
Windows or Linux
This is due to the fact that all targets are enabled in the correspondent plugin_metric.cfg section for this metric:
"[qos_target = ~.*]"
<CPU_Multi_Usage>
subsys =
qos_source = ~.*
qos_label = Individual CPU Usage
alarm = false
publish_qos = true
qos_target = ~.*
qos_name = QOS_CPU_MULTI_USAGE
publish_baseline = false
</CPU_Multi_Usage>
This issue is resolved in cdm_mcs_templates 7.20.1
(attached template package: "cdm_mcs_templates-7.20-20231227.zip" - "probe_template_pkg_version 7.20-SNAPSHOT" - published Jan 3 2024)
CPU Individual Usage for specific target only enables the enabled targets now.
Migration to Template 7.20.1 can only be triggered from 7.10.1 or in a "from scratch" scenario.
So if running any previous version template, migrate to 7.10.1 first otherwise the migration might fail.
This template version fix will be included in UIM 20.4 CU10 and UIM 23.4CU1