From 37ae8eb44af0e07565ebd0f85400db8b70a484ad Mon Sep 17 00:00:00 2001 From: Fabian Beuke Date: Sat, 10 Jun 2023 20:22:33 +0200 Subject: [PATCH] Fix: prometheus monitor_status metric has 4 values The prometheus monitor_status metric has actually 4 values. This can easily be verified by looking up the related source code or by using the metric in grafana an see values like 2 (which indicates timeout). --- server/prometheus.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/prometheus.js b/server/prometheus.js index aeba95f80..dd04394ae 100644 --- a/server/prometheus.js +++ b/server/prometheus.js @@ -28,7 +28,7 @@ const monitorResponseTime = new PrometheusClient.Gauge({ const monitorStatus = new PrometheusClient.Gauge({ name: "monitor_status", - help: "Monitor Status (1 = UP, 0= DOWN)", + help: "Monitor Status (1 = UP, 0= DOWN, 2= PENDING, 3= MAINTENANCE)", labelNames: commonLabels });