Skip to content

Commit

Permalink
cleanup(monitoring): after previous 2 commits this is not needed/usef…
Browse files Browse the repository at this point in the history
…ul (opendatahub-io#114)

Signed-off-by: Wen Zhou <[email protected]>
  • Loading branch information
zdtsw authored Nov 13, 2023
1 parent 8b534b0 commit 8f97ba8
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions config/monitoring/base/rhods-prometheusrules.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,17 +33,5 @@ spec:
instance: jupyter-notebooks
- record: cluster:usage:consumption:rhods:cpu_limits_runtime
expr: sum(kube_pod_container_resource_limits{namespace="rhods-notebooks",resource="cpu", container=~"jupyter-nb-.*"} * on(pod) kube_pod_status_phase{phase="Running", namespace="rhods-notebooks"})
labels:
instance: jupyter-notebooks
- record: rhods_total_users
expr: count(kube_statefulset_replicas{namespace=~"rhods-notebooks", statefulset=~"jupyter-nb-.*"})
labels:
instance: jupyter-notebooks
- record: rhods_active_users
expr: count(kube_statefulset_replicas{namespace=~"rhods-notebooks", statefulset=~"jupyter-nb-.*"} ==1)
labels:
instance: jupyter-notebooks
- record: rhods_aggregate_availability
expr: ((min(probe_success{name=~"rhods-dashboard|notebook-spawner"}) by (name) or on() vector(0)) or label_replace(min(probe_success{name=~"rhods-dashboard|notebook-spawner"}), "name", "combined", "name", ".*"))
labels:
instance: jupyter-notebooks

0 comments on commit 8f97ba8

Please sign in to comment.