mirror of
https://github.com/kemko/nomad.git
synced 2026-01-01 16:05:42 +03:00
Fix typos in metric names. #3610
This commit is contained in:
@@ -395,7 +395,7 @@ func (c *ServiceClient) sync() error {
|
||||
return err
|
||||
}
|
||||
sdereg++
|
||||
metrics.IncrCounter([]string{"client", "consul", "service_deregisrations"}, 1)
|
||||
metrics.IncrCounter([]string{"client", "consul", "service_deregistrations"}, 1)
|
||||
}
|
||||
|
||||
// Track services whose ports have changed as their checks may also
|
||||
@@ -420,7 +420,7 @@ func (c *ServiceClient) sync() error {
|
||||
return err
|
||||
}
|
||||
sreg++
|
||||
metrics.IncrCounter([]string{"client", "consul", "service_regisrations"}, 1)
|
||||
metrics.IncrCounter([]string{"client", "consul", "service_registrations"}, 1)
|
||||
}
|
||||
|
||||
// Remove Nomad checks in Consul but unknown locally
|
||||
@@ -439,7 +439,7 @@ func (c *ServiceClient) sync() error {
|
||||
return err
|
||||
}
|
||||
cdereg++
|
||||
metrics.IncrCounter([]string{"client", "consul", "check_deregisrations"}, 1)
|
||||
metrics.IncrCounter([]string{"client", "consul", "check_deregistrations"}, 1)
|
||||
}
|
||||
|
||||
// Add Nomad checks missing from Consul
|
||||
@@ -455,7 +455,7 @@ func (c *ServiceClient) sync() error {
|
||||
return err
|
||||
}
|
||||
creg++
|
||||
metrics.IncrCounter([]string{"client", "consul", "check_regisrations"}, 1)
|
||||
metrics.IncrCounter([]string{"client", "consul", "check_registrations"}, 1)
|
||||
|
||||
// Handle starting scripts
|
||||
if script, ok := c.scripts[id]; ok {
|
||||
|
||||
@@ -81,10 +81,10 @@
|
||||
"steppedLine": false,
|
||||
"targets": [
|
||||
{
|
||||
"expr": "nomad_client_consul_check_regisrations",
|
||||
"expr": "nomad_client_consul_check_registrations",
|
||||
"format": "time_series",
|
||||
"intervalFactor": 2,
|
||||
"metric": "nomad_client_consul_check_regisrations",
|
||||
"metric": "nomad_client_consul_check_registrations",
|
||||
"refId": "B",
|
||||
"step": 20
|
||||
}
|
||||
@@ -531,4 +531,4 @@
|
||||
"timezone": "",
|
||||
"title": "Prometheus Nomad",
|
||||
"version": 7
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user