Skip to content

Commit

Permalink
Add an alerting rule for jupyterhub
Browse files Browse the repository at this point in the history
  • Loading branch information
maulikjs authored and Chad Roberts committed Mar 18, 2021
1 parent 6601236 commit bdf144f
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions monitoring/prometheus/prometheus.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,15 @@ data:
annotations:
summary: An OpenShift pod has just been restarted.
action: Check {{ $labels.kubernetes_pod_name }} pod in {{ $labels.kubernetes_namespace}} namespace to determine why the pod is restarting.
- name: Data Hub Availability
interval: 10m
rules:
- alert: Jupyterhub route is unavailble
expr: probe_success{instance="<jupyterhub_host>",job="user_facing_endpoints_status"} == 0
for: 5m
annotations:
summary: JupyterHub in unavailble at its endpoint.
component: "{{ $labels.instance }}"
prometheus.yml: |
rule_files:
Expand Down

0 comments on commit bdf144f

Please sign in to comment.