Skip to content

Commit

Permalink
updating query
Browse files Browse the repository at this point in the history
  • Loading branch information
wejdross committed May 10, 2023
1 parent e0bb029 commit 0b82cdd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/db/seeds/appcat_vshn.promql.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 0b82cdd

Please sign in to comment.