Skip to content

Commit 6cea98e

Browse files
authored
Recording Rule uwm stage (#7553)
* feat(SPRE-1818): Recording rules uwm staging Signed-off-by: Gabriel Soares <[email protected]> * feat(SPRE-1818): kustomization update Signed-off-by: Gabriel Soares <[email protected]> * feat(SPRE-1818): prometheus rule stone-stg-rh01 Signed-off-by: Gabriel Soares <[email protected]> * feat(SPRE-1818): include kustomization stone-stg-rh01 Signed-off-by: Gabriel Soares <[email protected]> --------- Signed-off-by: Gabriel Soares <[email protected]>
1 parent 479ca23 commit 6cea98e

File tree

3 files changed

+14
-0
lines changed

3 files changed

+14
-0
lines changed

components/monitoring/prometheus/staging/base/kustomization.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ resources:
66
- ../../base/observability-operator
77
- ../../base/rbac
88
- monitoringstack/
9+
910
patches:
1011
- path: rhobs-secret-path.yaml
1112
target:

components/monitoring/prometheus/staging/stone-stg-rh01/kustomization.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ apiVersion: kustomize.config.k8s.io/v1beta1
22
kind: Kustomization
33
resources:
44
- ../base
5+
- prometheusrule-uwm.yaml
56

67
patches:
78
- path: cluster-id-label.yaml
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
apiVersion: monitoring.coreos.com/v1
2+
kind: PrometheusRule
3+
metadata:
4+
name: prometheus-recording-rules-uwm-namespace
5+
namespace: openshift-user-workload-monitoring
6+
spec:
7+
groups:
8+
- name: rules_container_memory_working_set_bytes_namespace_container
9+
rules:
10+
- expr: |
11+
avg by (namespace,container) (rate(container_memory_working_set_bytes{job="kubelet", metrics_path="/metrics/cadvisor", image!=""}[5m]))
12+
record: namespace_container:container_memory_working_set_bytes

0 commit comments

Comments
 (0)