Maintain Platform App - app-power-metrics

Update Override Input Plugins procedure.

Story: 2011472
Task: 52677

Change-Id: Idfed6c61e86561e55abb5cd245bbc6085d16d112
Signed-off-by: Elisamara Aoki Gonçalves <elisamaraaoki.goncalves@windriver.com>
This commit is contained in:
Elisamara Aoki Gonçalves
2025-07-21 17:33:55 +00:00
parent 1fa897faff
commit a1f785b2ec

View File

@@ -151,71 +151,69 @@ Example of overriding the powerstat plugin:
.. code-block:: none
[sysadmin@controller-0 ~(keystone_admin)]$ cat telegraf-powerstat.yaml
config:
inputs:
# Default plugins to collect power-metrics data
- intel_powerstat:
cpu_metrics:
- "cpu_frequency"
- "cpu_busy_frequency"
- "cpu_temperature"
- "cpu_c0_state_residency"
- "cpu_c1_state_residency"
- "cpu_c6_state_residency"
- "cpu_busy_cycles"
package_metrics:
- "current_power_consumption"
- "current_dram_power_consumption"
- "thermal_design_power"
- "cpu_base_frequency"
- "uncore_frequency"
- intel_pmu:
event_definitions:
- "/etc/telegraf/events_definition.json"
core_events:
- events:
- INST_RETIRED.ANY
- linux_cpu:
metrics: ["cpufreq"]
config:
inputs:
# Default plugins to collect power-metrics data
- intel_powerstat:
cpu_metrics:
- "cpu_frequency"
- "cpu_busy_frequency"
- "cpu_temperature"
- "cpu_c0_state_residency"
- "cpu_c1_state_residency"
- "cpu_c6_state_residency"
package_metrics:
- "current_power_consumption"
- "current_dram_power_consumption"
- "thermal_design_power"
- "cpu_base_frequency"
- "uncore_frequency"
- intel_pmu:
event_definitions:
- "/etc/telegraf/events_definition.json"
core_events:
- events:
- INST_RETIRED.ANY
- linux_cpu:
metrics: ["cpufreq"]
#. Apply the override.
.. code-block:: none
[sysadmin@controller-0 ~(keystone_admin)]$ system helm-override-update power-metrics telegraf power-metrics --values telegraf-powerstat.yaml
[sysadmin@controller-0 ~(keystone_admin)]$ system helm-override-update power-metrics telegraf power-metrics --values telegraf-powerstat.yaml
+----------------+------------------------------------------------+
| Property | Value |
+----------------+------------------------------------------------+
| name | telegraf |
| namespace | power-metrics |
| user_overrides | config: |
| | inputs: |
| | - intel_powerstat: |
| | cpu_metrics: |
| | - cpu_frequency |
| | - cpu_busy_frequency |
| | - cpu_temperature |
| | - cpu_c0_state_residency |
| | - cpu_c1_state_residency |
| | - cpu_c6_state_residency |
| | - cpu_busy_cycles |
| | package_metrics: |
| | - current_power_consumption |
| | - current_dram_power_consumption |
| | - thermal_design_power |
| | - cpu_base_frequency |
| | - uncore_frequency |
| | - intel_pmu: |
| | event_definitions: |
| | - "/etc/telegraf/events_definition.json" |
| | core_events: |
| | - events: |
| | - INST_RETIRED.ANY |
| | - linux_cpu: |
| | metrics: ["cpufreq"] |
| | |
+----------------+------------------------------------------------+
+----------------+------------------------------------------------+
| Property | Value |
+----------------+------------------------------------------------+
| name | telegraf |
| namespace | power-metrics |
| user_overrides | config: |
| | inputs: |
| | - intel_powerstat: |
| | cpu_metrics: |
| | - cpu_frequency |
| | - cpu_busy_frequency |
| | - cpu_temperature |
| | - cpu_c0_state_residency |
| | - cpu_c1_state_residency |
| | - cpu_c6_state_residency |
| | package_metrics: |
| | - current_power_consumption |
| | - current_dram_power_consumption |
| | - thermal_design_power |
| | - cpu_base_frequency |
| | - uncore_frequency |
| | - intel_pmu: |
| | event_definitions: |
| | - "/etc/telegraf/events_definition.json" |
| | core_events: |
| | - events: |
| | - INST_RETIRED.ANY |
| | - linux_cpu: |
| | metrics: ["cpufreq"] |
| | |
+----------------+------------------------------------------------+
#. Re-apply the application.