From 1cc6b4062c2e883fa2be75710b8486ab21eb2c5d Mon Sep 17 00:00:00 2001 From: Lang Martin Date: Wed, 26 Jun 2019 10:44:56 -0400 Subject: [PATCH] fsm label batch_deregister_node metrics explicitly Co-Authored-By: Mahmood Ali --- nomad/fsm.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nomad/fsm.go b/nomad/fsm.go index fcc1b1426..64f96b4db 100644 --- a/nomad/fsm.go +++ b/nomad/fsm.go @@ -307,7 +307,7 @@ func (n *nomadFSM) applyDeregisterNode(buf []byte, index uint64) interface{} { } func (n *nomadFSM) applyDeregisterNodeBatch(buf []byte, index uint64) interface{} { - defer metrics.MeasureSince([]string{"nomad", "fsm", "deregister_node"}, time.Now()) + defer metrics.MeasureSince([]string{"nomad", "fsm", "batch_deregister_node"}, time.Now()) var req structs.NodeDeregisterBatchRequest if err := structs.Decode(buf, &req); err != nil { panic(fmt.Errorf("failed to decode request: %v", err))