Browse Source

Add tags as labels to prometheus metrics

proffalken/feature/680_add_labels_to_prometheus_metrics
Matthew Macdonald-Wallace 3 years ago
parent
commit
01d32415af
  1. 3
      server/prometheus.js

3
server/prometheus.js

@ -42,6 +42,9 @@ class Prometheus {
monitor_hostname: monitor.hostname, monitor_hostname: monitor.hostname,
monitor_port: monitor.port monitor_port: monitor.port
}; };
for (var t in monitor.tags) {
this.monitorLabelValues[k] = monitor.tags[k];
}
} }
update(heartbeat, tlsInfo) { update(heartbeat, tlsInfo) {

Loading…
Cancel
Save