mirror of
https://github.com/kemko/nomad.git
synced 2026-01-03 17:05:43 +03:00
core: ensure all Server receiver names are consistent. (#16859)
This commit is contained in:
@@ -11,10 +11,10 @@ import (
|
||||
|
||||
// MeasureRPCRate increments the appropriate rate metric for this endpoint,
|
||||
// with a label from the identity
|
||||
func (srv *Server) MeasureRPCRate(endpoint, op string, args structs.RequestWithIdentity) {
|
||||
func (s *Server) MeasureRPCRate(endpoint, op string, args structs.RequestWithIdentity) {
|
||||
identity := args.GetIdentity()
|
||||
|
||||
if !srv.config.ACLEnabled || identity == nil || srv.config.DisableRPCRateMetricsLabels {
|
||||
if !s.config.ACLEnabled || identity == nil || s.config.DisableRPCRateMetricsLabels {
|
||||
// If ACLs aren't enabled, we never have a sensible identity.
|
||||
// Or the administrator may have disabled the identity labels.
|
||||
metrics.IncrCounter([]string{"nomad", "rpc", endpoint, op}, 1)
|
||||
|
||||
Reference in New Issue
Block a user