From 0b82cdd28d68a2d8be916fd34943ac00e9b27e07 Mon Sep 17 00:00:00 2001 From: wejdross Date: Wed, 10 May 2023 09:19:05 +0200 Subject: [PATCH] updating query --- pkg/db/seeds/appcat_vshn.promql.tmpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/db/seeds/appcat_vshn.promql.tmpl b/pkg/db/seeds/appcat_vshn.promql.tmpl index 160535d..a3b7e82 100644 --- a/pkg/db/seeds/appcat_vshn.promql.tmpl +++ b/pkg/db/seeds/appcat_vshn.promql.tmpl @@ -18,7 +18,7 @@ sum_over_time( # Copy label appuio.io/organization to label tenant_id label_replace( # Fetch all namespaces with label appcat.vshn.io/billing-name="{{.ServiceName}}" - kube_namespace_labels{label_appuio_io_organization=~".+", label_appcat_vshn_io_billing_name="{{.ServiceName}}"}, + kube_namespace_labels{label_appuio_io_organization=~".+", label_appcat_vshn_io_billing_name="{{.ServiceName}}"} * on (namespace) group_right(label_appuio_io_organization,label_appcat_vshn_io_claim_namespace,label_appcat_vshn_io_sla,product,provider,architecture, category, claim_namespace, tenant_id) kube_pod_info{created_by_kind!="Job"}, "tenant_id", "$1", "label_appuio_io_organization",