1
0
Fork 0
mirror of https://github.com/postmannen/ctrl.git synced 2024-12-15 17:51:15 +00:00

changed metric label

This commit is contained in:
postmannen 2021-04-12 16:49:16 +02:00
parent db7ff9c63a
commit 64909bfe17

View file

@ -189,12 +189,12 @@ func (s startup) subREQHello(p process) {
sayHelloNodes := make(map[node]struct{})
promHelloNodes := promauto.NewGauge(prometheus.GaugeOpts{
Name: "hello_nodes",
Name: "hello_nodes_total",
Help: "The current number of total nodes who have said hello",
})
promHelloNodesNameVec := promauto.NewGaugeVec(prometheus.GaugeOpts{
Name: "hello_nodes_name",
Name: "hello_node_last_hello",
Help: "Name of the nodes who have said hello",
}, []string{"nodeName"},
)