Skip to content

Commit

Permalink
Merge pull request #189 from littlejawa/add_prometheus_rule
Browse files Browse the repository at this point in the history
Adding a PrometheusRule for kata monitor
  • Loading branch information
bpradipt committed Jun 1, 2022
2 parents e1ba6b1 + fb0b2f1 commit eda5b31
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
apiVersion: monitoring.coreos.com/v1
kind: PrometheusRule
metadata:
name: prometheus-sandboxed-containers-rules
spec:
groups:
- name: kata_monitor_rules
rules:
- expr: sum(kata_monitor_running_shim_count)
record: cluster:kata_monitor_running_shim_count:sum
11 changes: 11 additions & 0 deletions config/kata-monitor/kata-monitor-prometheus-rules.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
apiVersion: monitoring.coreos.com/v1
kind: PrometheusRule
metadata:
name: prometheus-sandboxed-containers-rules
namespace: openshift-sandboxed-containers-operator
spec:
groups:
- name: kata_monitor_rules
rules:
- record: cluster:kata_monitor_running_shim_count:sum
expr: sum(kata_monitor_running_shim_count)
1 change: 1 addition & 0 deletions config/kata-monitor/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@ resources:
- kata-monitor-service.yaml
- kata-monitor-servicemonitor.yaml
- osc-dashboard.yaml
- kata-monitor-prometheus-rules.yaml

0 comments on commit eda5b31

Please sign in to comment.