mirror of
https://github.com/louislam/uptime-kuma.git
synced 2025-06-13 08:02:35 +02:00
Add tags as labels to prometheus metrics
This commit is contained in:
parent
74d2b38cb6
commit
fa1dfe1626
1 changed files with 3 additions and 0 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Reference in a new issue