-
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
Signed-off-by: vprashar2929 <[email protected]>
- Loading branch information
1 parent
2c42b18
commit 267e114
Showing
4 changed files
with
271 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,235 @@ | ||
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 | ||
# absolute power comparison | ||
|
||
- 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 - absolute | ||
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 | ||
|
||
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