Skip to content

Commit

Permalink
fixing rules
Browse files Browse the repository at this point in the history
  • Loading branch information
mahmodjabareen committed Dec 26, 2023
1 parent 81d2931 commit a12f0aa
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 @@ -614,7 +614,7 @@ spec:
)
)
)
record: sum(kube_pod_container_resource_requests{resource="memory"}) by (namespace)
record: namespace:kube_pod_container_resource_requests_memory_bytes:sum
- expr: |
sum by (namespace) (
sum by (namespace, pod) (
Expand All @@ -625,7 +625,7 @@ spec:
)
)
)
record: sum(kube_pod_container_resource_requests{resource="cpu"}) by (namespace)
record: namespace:kube_pod_container_resource_requests_cpu_cores:sum
- expr: |
max by (cluster, namespace, workload, pod) (
label_replace(
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 @@ -614,7 +614,7 @@ spec:
)
)
)
record: sum(kube_pod_container_resource_requests{resource="memory"}) by (namespace)
record: namespace:kube_pod_container_resource_requests_memory_bytes:sum
- expr: |
sum by (namespace) (
sum by (namespace, pod) (
Expand All @@ -625,7 +625,7 @@ spec:
)
)
)
record: sum(kube_pod_container_resource_requests{resource="cpu"}) by (namespace)
record: namespace:kube_pod_container_resource_requests_cpu_cores:sum
- expr: |
max by (cluster, namespace, workload, pod) (
label_replace(
Expand Down

0 comments on commit a12f0aa

Please sign in to comment.