Skip to content

Commit bd3c63e

Browse files
authored
Merge pull request #704 from grafana/fix-rules-left-join
2 parents 9bb096e + 8ec009f commit bd3c63e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

rules/apps.libsonnet

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@
6262
record: 'cluster:namespace:pod_memory:active:kube_pod_container_resource_requests',
6363
expr: |||
6464
kube_pod_container_resource_requests{resource="memory",%(kubeStateMetricsSelector)s} * on (namespace, pod, %(clusterLabel)s)
65-
group_left() max by (namespace, pod) (
65+
group_left() max by (namespace, pod, %(clusterLabel)s) (
6666
(kube_pod_status_phase{phase=~"Pending|Running"} == 1)
6767
)
6868
||| % $._config,
@@ -85,7 +85,7 @@
8585
record: 'cluster:namespace:pod_cpu:active:kube_pod_container_resource_requests',
8686
expr: |||
8787
kube_pod_container_resource_requests{resource="cpu",%(kubeStateMetricsSelector)s} * on (namespace, pod, %(clusterLabel)s)
88-
group_left() max by (namespace, pod) (
88+
group_left() max by (namespace, pod, %(clusterLabel)s) (
8989
(kube_pod_status_phase{phase=~"Pending|Running"} == 1)
9090
)
9191
||| % $._config,
@@ -108,7 +108,7 @@
108108
record: 'cluster:namespace:pod_memory:active:kube_pod_container_resource_limits',
109109
expr: |||
110110
kube_pod_container_resource_limits{resource="memory",%(kubeStateMetricsSelector)s} * on (namespace, pod, %(clusterLabel)s)
111-
group_left() max by (namespace, pod) (
111+
group_left() max by (namespace, pod, %(clusterLabel)s) (
112112
(kube_pod_status_phase{phase=~"Pending|Running"} == 1)
113113
)
114114
||| % $._config,
@@ -131,7 +131,7 @@
131131
record: 'cluster:namespace:pod_cpu:active:kube_pod_container_resource_limits',
132132
expr: |||
133133
kube_pod_container_resource_limits{resource="cpu",%(kubeStateMetricsSelector)s} * on (namespace, pod, %(clusterLabel)s)
134-
group_left() max by (namespace, pod) (
134+
group_left() max by (namespace, pod, %(clusterLabel)s) (
135135
(kube_pod_status_phase{phase=~"Pending|Running"} == 1)
136136
)
137137
||| % $._config,

0 commit comments

Comments
 (0)