From 53e83e77224b32ee84a42d2c19d420719d0e1f53 Mon Sep 17 00:00:00 2001 From: Manu <4445816+tr4nt0r@users.noreply.github.com> Date: Thu, 12 Jun 2025 12:31:01 +0200 Subject: [PATCH] Add monitor id label to prometheus metrics (#5907) --- server/prometheus.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/server/prometheus.js b/server/prometheus.js index f26125d2c..485dfe53a 100644 --- a/server/prometheus.js +++ b/server/prometheus.js @@ -2,6 +2,7 @@ const PrometheusClient = require("prom-client"); const { log } = require("../src/util"); const commonLabels = [ + "monitor_id", "monitor_name", "monitor_type", "monitor_url", @@ -40,6 +41,7 @@ class Prometheus { */ constructor(monitor) { this.monitorLabelValues = { + monitor_id: monitor.id, monitor_name: monitor.name, monitor_type: monitor.type, monitor_url: monitor.url,