-
Notifications
You must be signed in to change notification settings - Fork 187
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(validator): add support to validate kepler metrics
This commit adds support to validate essential metrics produced by Kepler Signed-off-by: vprashar2929 <[email protected]>
- Loading branch information
1 parent
75b9533
commit 827aefd
Showing
4 changed files
with
356 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,320 @@ | ||
config: | ||
mapping: | ||
actual: latest | ||
predicted: dev | ||
|
||
validations: | ||
# absolute power comparison | ||
- name: Total - absolute | ||
latest: | | ||
sum( | ||
rate( | ||
kepler_process_joules_total{{ | ||
job="{latest_job_name}", | ||
}}[{rate_interval}] | ||
) | ||
) | ||
dev: | | ||
sum( | ||
rate( | ||
kepler_process_joules_total{{ | ||
job="{dev_job_name}", | ||
}}[{rate_interval}] | ||
) | ||
) | ||
max_mae: 2.0 | ||
|
||
- name: platform - absolute | ||
latest: | | ||
sum( | ||
rate( | ||
kepler_process_platform_joules_total{{ | ||
job="{latest_job_name}", | ||
}}[{rate_interval}] | ||
) | ||
) | ||
dev: | | ||
sum( | ||
rate( | ||
kepler_process_platform_joules_total{{ | ||
job="{dev_job_name}", | ||
}}[{rate_interval}] | ||
) | ||
) | ||
max_mae: 2.0 | ||
|
||
- name: package - absolute | ||
latest: | | ||
sum( | ||
rate( | ||
kepler_process_package_joules_total{{ | ||
job="{latest_job_name}", | ||
}}[{rate_interval}] | ||
) | ||
) | ||
dev: | | ||
sum( | ||
rate( | ||
kepler_process_package_joules_total{{ | ||
job="{dev_job_name}", | ||
}}[{rate_interval}] | ||
) | ||
) | ||
max_mae: 2.0 | ||
|
||
- name: dram - absolute | ||
latest: | | ||
sum( | ||
rate( | ||
kepler_process_dram_joules_total{{ | ||
job="{latest_job_name}", | ||
}}[{rate_interval}] | ||
) | ||
) | ||
dev: | | ||
sum( | ||
rate( | ||
kepler_process_dram_joules_total{{ | ||
job="{dev_job_name}", | ||
}}[{rate_interval}] | ||
) | ||
) | ||
max_mae: 2.0 | ||
|
||
- name: core - absolute | ||
units: Watts | ||
latest: | | ||
sum( | ||
rate( | ||
kepler_process_core_joules_total{{ | ||
job="{latest_job_name}", | ||
}}[{rate_interval}] | ||
) | ||
) | ||
dev: | | ||
sum( | ||
rate( | ||
kepler_process_core_joules_total{{ | ||
job="{dev_job_name}", | ||
}}[{rate_interval}] | ||
) | ||
) | ||
max_mae: 2.0 | ||
|
||
- name: other - absolute | ||
units: Watts | ||
latest: | | ||
sum( | ||
rate( | ||
kepler_process_other_joules_total{{ | ||
job="{latest_job_name}", | ||
}}[{rate_interval}] | ||
) | ||
) | ||
dev: | | ||
sum( | ||
rate( | ||
kepler_process_other_joules_total{{ | ||
job="{dev_job_name}", | ||
}}[{rate_interval}] | ||
) | ||
) | ||
max_mae: 2.0 | ||
|
||
# CPU time comparison | ||
- name: cpu-time | ||
units: Milliseconds | ||
latest: | | ||
sum( | ||
rate( | ||
kepler_process_bpf_cpu_time_ms_total{{ | ||
job="{latest_job_name}" | ||
}}[{rate_interval}] | ||
) | ||
) | ||
dev: | | ||
sum( | ||
rate( | ||
kepler_process_bpf_cpu_time_ms_total{{ | ||
job="{dev_job_name}", | ||
}}[{rate_interval}] | ||
) | ||
) | ||
# max_mae: 20.0 | ||
|
||
- name: package - dynamic | ||
units: Watts | ||
latest: | | ||
sum( | ||
rate( | ||
kepler_process_package_joules_total{{ | ||
job="{latest_job_name}", | ||
mode="dynamic", | ||
}}[{rate_interval}] | ||
) | ||
) | ||
dev: | | ||
sum( | ||
rate( | ||
kepler_process_package_joules_total{{ | ||
job="{dev_job_name}", | ||
mode="dynamic", | ||
}}[{rate_interval}] | ||
) | ||
) | ||
max_mae: 2.0 | ||
|
||
- name: core - dynamic | ||
units: Watts | ||
latest: | | ||
sum( | ||
rate( | ||
kepler_process_core_joules_total{{ | ||
job="{latest_job_name}", | ||
mode="dynamic", | ||
}}[{rate_interval}] | ||
) | ||
) | ||
dev: | | ||
sum( | ||
rate( | ||
kepler_process_core_joules_total{{ | ||
job="{dev_job_name}", | ||
mode="dynamic", | ||
}}[{rate_interval}] | ||
) | ||
) | ||
max_mae: 2.0 | ||
|
||
- name: dram - dynamic | ||
units: Watts | ||
latest: | | ||
sum( | ||
rate( | ||
kepler_process_dram_joules_total{{ | ||
job="{latest_job_name}", | ||
mode="dynamic", | ||
}}[{rate_interval}] | ||
) | ||
) | ||
dev: | | ||
sum( | ||
rate( | ||
kepler_process_dram_joules_total{{ | ||
job="{dev_job_name}", | ||
mode="dynamic", | ||
}}[{rate_interval}] | ||
) | ||
) | ||
max_mae: 2.0 | ||
|
||
- name: other - dynamic | ||
units: Watts | ||
latest: | | ||
sum( | ||
rate( | ||
kepler_process_other_joules_total{{ | ||
job="{latest_job_name}", | ||
mode="dynamic", | ||
}}[{rate_interval}] | ||
) | ||
) | ||
dev: | | ||
sum( | ||
rate( | ||
kepler_process_other_joules_total{{ | ||
job="{dev_job_name}", | ||
mode="dynamic", | ||
}}[{rate_interval}] | ||
) | ||
) | ||
max_mae: 2.0 | ||
|
||
# Node comparison | ||
- name: node platform - dynamic | ||
units: Watts | ||
latest: | | ||
rate(kepler_node_platform_joules_total{{ | ||
job="{latest_job_name}", | ||
mode="dynamic", | ||
}}[{rate_interval}] | ||
) | ||
dev: | | ||
rate(kepler_node_platform_joules_total{{ | ||
job="{dev_job_name}", | ||
mode="dynamic", | ||
}}[{rate_interval}] | ||
) | ||
max_mae: 2.0 | ||
|
||
- name: node package - dynamic | ||
units: Watts | ||
latest: | | ||
rate(kepler_node_package_joules_total{{ | ||
job="{latest_job_name}", | ||
mode="dynamic", | ||
}}[{rate_interval}] | ||
) | ||
dev: | | ||
rate(kepler_node_package_joules_total{{ | ||
job="{dev_job_name}", | ||
mode="dynamic", | ||
}}[{rate_interval}] | ||
) | ||
max_mae: 2.0 | ||
|
||
- name: node core - dynamic | ||
units: Watts | ||
latest: | | ||
rate(kepler_node_core_joules_total{{ | ||
job="{latest_job_name}", | ||
mode="dynamic", | ||
}}[{rate_interval}] | ||
) | ||
dev: | | ||
rate(kepler_node_core_joules_total{{ | ||
job="{dev_job_name}", | ||
mode="dynamic", | ||
}}[{rate_interval}] | ||
) | ||
max_mae: 2.0 | ||
|
||
- name: node dram - dynamic | ||
units: Watts | ||
latest: | | ||
rate(kepler_node_dram_joules_total{{ | ||
job="{latest_job_name}", | ||
mode="dynamic", | ||
}}[{rate_interval}] | ||
) | ||
dev: | | ||
rate(kepler_node_dram_joules_total{{ | ||
job="{dev_job_name}", | ||
mode="dynamic", | ||
}}[{rate_interval}] | ||
) | ||
max_mae: 2.0 | ||
|
||
- name: node other - dynamic | ||
units: Watts | ||
latest: | | ||
rate(kepler_node_other_joules_total{{ | ||
job="{latest_job_name}", | ||
mode="dynamic", | ||
}}[{rate_interval}] | ||
) | ||
dev: | | ||
rate(kepler_node_other_joules_total{{ | ||
job="{dev_job_name}", | ||
mode="dynamic", | ||
}}[{rate_interval}] | ||
) | ||
max_mae: 2.0 | ||
|
||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters