From 92443616799fa5bdc375dccdbcc6b1f82f79f869 Mon Sep 17 00:00:00 2001 From: Stefan Prodan Date: Tue, 7 May 2024 09:59:37 +0300 Subject: [PATCH] Add `chart_app_version` to `HelmRelease` metrics Signed-off-by: Stefan Prodan --- .../kube-prometheus-stack/kube-state-metrics-config.yaml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/monitoring/controllers/kube-prometheus-stack/kube-state-metrics-config.yaml b/monitoring/controllers/kube-prometheus-stack/kube-state-metrics-config.yaml index fa8b091..4f2818d 100644 --- a/monitoring/controllers/kube-prometheus-stack/kube-state-metrics-config.yaml +++ b/monitoring/controllers/kube-prometheus-stack/kube-state-metrics-config.yaml @@ -69,8 +69,10 @@ kube-state-metrics: exported_namespace: [ metadata, namespace ] ready: [ status, conditions, "[type=Ready]", status ] suspended: [ spec, suspend ] - revision: [ status, lastAppliedRevision ] - chart_name: [ spec, chart, spec, chart ] + revision: [ status, history, "0", chartVersion ] + chart_name: [ status, history, "0", chartName ] + chart_app_version: [ status, history, "0", appVersion ] + chart_ref_name: [ spec, chartRef, name ] chart_source_name: [ spec, chart, spec, sourceRef, name ] - groupVersionKind: group: source.toolkit.fluxcd.io