diff --git a/CHANGELOG.md b/CHANGELOG.md index 5e1e3a6c9..060e1d7fd 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +### Changed + +- fixed `aggregation:kyverno_policy_job_status_team` expression. + ### Added - Recording rules for Tempo diff --git a/helm/prometheus-rules/templates/recording-rules/grafana-cloud.rules.yml b/helm/prometheus-rules/templates/recording-rules/grafana-cloud.rules.yml index dfb0fe4a6..68d4c2e0f 100644 --- a/helm/prometheus-rules/templates/recording-rules/grafana-cloud.rules.yml +++ b/helm/prometheus-rules/templates/recording-rules/grafana-cloud.rules.yml @@ -409,10 +409,10 @@ spec: }, "job", ",", "name") ) by (job, category, policy, status) * on(job) group_left(team, app) sum( - label_join(label_join(kube_job_labels{ + label_join(label_join(label_join(kube_job_labels{ cluster_type="management_cluster", label_application_giantswarm_io_team!="" - }, "app", ",", "label_app_kubernetes_io_name"), "team", ",", "label_application_giantswarm_io_team") + }, "app", ",", "label_app_kubernetes_io_name"), "team", ",", "label_application_giantswarm_io_team"), "job", ",", "job_name") ) by (team, app, job), "name", ",", "job") record: aggregation:kyverno_policy_job_status_team