Skip to content

Commit

Permalink
return the main rules for testing
Browse files Browse the repository at this point in the history
  • Loading branch information
mahmodjabareen committed Jan 4, 2024
1 parent feba211 commit f9522a3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions pkg/monitoring/tmpl/prometheus/instance/ccp/rules.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -608,7 +608,7 @@ spec:
sum by (namespace) (
sum by (namespace, pod) (
max by (namespace, pod, container) (
kube_pod_container_resource_requests{resource="memory", job="kube-state-metrics"}
kube_pod_container_resource_requests_memory_bytes{job="kube-state-metrics"}
) * on(namespace, pod) group_left() max by (namespace, pod) (
kube_pod_status_phase{phase=~"Pending|Running"} == 1
)
Expand All @@ -619,7 +619,7 @@ spec:
sum by (namespace) (
sum by (namespace, pod) (
max by (namespace, pod, container) (
kube_pod_container_resource_requests{resource="cpu",job="kube-state-metrics"}
kube_pod_container_resource_requests_cpu_cores{job="kube-state-metrics"}
) * on(namespace, pod) group_left() max by (namespace, pod) (
kube_pod_status_phase{phase=~"Pending|Running"} == 1
)
Expand Down
4 changes: 2 additions & 2 deletions pkg/monitoring/tmpl/prometheus/instance/infra/rules.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -608,7 +608,7 @@ spec:
sum by (namespace) (
sum by (namespace, pod) (
max by (namespace, pod, container) (
kube_pod_container_resource_requests{resource="memory", job="kube-state-metrics"}
kube_pod_container_resource_requests_memory_bytes{job="kube-state-metrics"}
) * on(namespace, pod) group_left() max by (namespace, pod) (
kube_pod_status_phase{phase=~"Pending|Running"} == 1
)
Expand All @@ -619,7 +619,7 @@ spec:
sum by (namespace) (
sum by (namespace, pod) (
max by (namespace, pod, container) (
kube_pod_container_resource_requests{resource="cpu",job="kube-state-metrics"}
kube_pod_container_resource_requests_cpu_cores{job="kube-state-metrics"}
) * on(namespace, pod) group_left() max by (namespace, pod) (
kube_pod_status_phase{phase=~"Pending|Running"} == 1
)
Expand Down

0 comments on commit f9522a3

Please sign in to comment.