diff --git a/server/prometheus.js b/server/prometheus.js index f0af7c39d..1ce6ff974 100644 --- a/server/prometheus.js +++ b/server/prometheus.js @@ -42,8 +42,9 @@ class Prometheus { monitor_hostname: monitor.hostname, monitor_port: monitor.port }; - for (var t in monitor.tags) { - this.monitorLabelValues[k] = monitor.tags[k]; + + for (let tag in monitor.tags) { + this.monitorLabelValues[tag] = monitor.tags[tag]; } }