From fa71ad239501d01311ad0b4862ceaebcc4690e73 Mon Sep 17 00:00:00 2001 From: Daniel Simionato Date: Fri, 10 Nov 2023 12:07:42 +0100 Subject: [PATCH] Fix recording rule expression for kubelet status. Added condition="Ready" label to kube_node_status_condition since we only check that condition in the errors. --- CHANGELOG.md | 4 ++++ .../templates/recording-rules/service-level.rules.yml | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index a153d5ff4..29233475c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,6 +9,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [2.139.0] - 2023-11-07 +### Fixed + +- Fix `raw_slo_requests` recording rule expression for kubelet status. + ### Added - Add KEDA alerting rules. diff --git a/helm/prometheus-rules/templates/recording-rules/service-level.rules.yml b/helm/prometheus-rules/templates/recording-rules/service-level.rules.yml index 6c1b732cf..8ab9e1a53 100644 --- a/helm/prometheus-rules/templates/recording-rules/service-level.rules.yml +++ b/helm/prometheus-rules/templates/recording-rules/service-level.rules.yml @@ -82,7 +82,7 @@ spec: record: slo_target # -- kubelet whole cluster - - expr: "kube_node_status_condition" + - expr: kube_node_status_condition{condition="Ready"} labels: class: MEDIUM area: kaas