From 01d32415af3257427a62d33524e460bcd5ac8c9b Mon Sep 17 00:00:00 2001 From: Matthew Macdonald-Wallace Date: Tue, 9 Nov 2021 15:24:32 +0000 Subject: [PATCH] Add tags as labels to prometheus metrics --- server/prometheus.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/server/prometheus.js b/server/prometheus.js index 870581d..f0af7c3 100644 --- a/server/prometheus.js +++ b/server/prometheus.js @@ -42,6 +42,9 @@ class Prometheus { monitor_hostname: monitor.hostname, monitor_port: monitor.port }; + for (var t in monitor.tags) { + this.monitorLabelValues[k] = monitor.tags[k]; + } } update(heartbeat, tlsInfo) { -- 2.43.0