Skip to content

Commit 53e83e7

Browse files
authored
Add monitor id label to prometheus metrics (#5907)
1 parent 8909cd0 commit 53e83e7

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

server/prometheus.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ const PrometheusClient = require("prom-client");
22
const { log } = require("../src/util");
33

44
const commonLabels = [
5+
"monitor_id",
56
"monitor_name",
67
"monitor_type",
78
"monitor_url",
@@ -40,6 +41,7 @@ class Prometheus {
4041
*/
4142
constructor(monitor) {
4243
this.monitorLabelValues = {
44+
monitor_id: monitor.id,
4345
monitor_name: monitor.name,
4446
monitor_type: monitor.type,
4547
monitor_url: monitor.url,

0 commit comments

Comments
 (0)