monitoring: remove unused dashboard selectors

This commit is contained in:
jenkins 2026-08-16 06:25:59 -03:00
parent cef7241f11
commit 3469c340c5

View File

@ -4049,11 +4049,6 @@ def build_jobs_dashboard():
exported = PLATFORM_TEST_EXPORT_FILTER
runs_selector = f'suite=~"{suite_var}",{exported}'
runs_success_selector = f'{runs_selector},status=~"{success}"'
runs_failure_selector = f'{runs_selector},status!~"{success}"'
checks_selector = f'__name__=~".*_quality_gate_checks_total",suite=~"{suite_var}",{exported}'
coverage_metric_selector = f'__name__=~".*_quality_gate_coverage_percent",suite=~"{suite_var}",{exported}'
workspace_coverage_selector = f'suite=~"{suite_var}",{exported}'
smell_selector = f'suite=~"{suite_var}",{exported}'
build_info_selector = f'suite=~"{suite_var}",branch!="",branch=~"{branch_var}",{exported}'
selected_suite_universe = (
f'(count by (suite) (platform_quality_gate_build_info{{{build_info_selector}}}) >= bool 0)'
@ -4177,9 +4172,6 @@ def build_jobs_dashboard():
)
smell_history_by_suite = smell_by_suite
loc_files_history_by_suite = loc_files_by_suite
smell_with_missing = (
f"({smell_by_suite}) or on(suite) ({selected_suite_missing})"
)
loc_limit_compliance_by_suite = (
f"(100 * clamp_min(({loc_files_by_suite}) - ({smell_by_suite}), 0) / ({loc_files_by_suite})) "
f"and on(suite) (({loc_files_by_suite}) > 0)"