From 92d188cdee7c21adf7db5631e0ef32ac87d5433f Mon Sep 17 00:00:00 2001 From: Anish Asthana Date: Tue, 3 Aug 2021 15:49:09 -0400 Subject: [PATCH] Update Prometheus configs to account for JupyterHub HA changes Signed-off-by: Anish Asthana --- monitoring/prometheus/prometheus.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/monitoring/prometheus/prometheus.yaml b/monitoring/prometheus/prometheus.yaml index 294ffe0..8879989 100644 --- a/monitoring/prometheus/prometheus.yaml +++ b/monitoring/prometheus/prometheus.yaml @@ -421,7 +421,7 @@ data: - name: Usage Metrics rules: - - expr: jupyterhub_total_users + - expr: max(jupyterhub_total_users) labels: instance: jupyterhub record: rhods_total_users @@ -622,7 +622,7 @@ data: - source_labels: [__address__] regex: (.+):(\d+) target_label: __address__ - replacement: ${1}:8080 + replacement: ${1}:8081 - job_name: 'user_facing_endpoints_status'