From 884a63431ec2d484b30e0d8427e4e1866c764f77 Mon Sep 17 00:00:00 2001 From: Max Bowsher Date: Sun, 19 Jun 2022 17:38:04 +0100 Subject: [PATCH] Delete definition of metric `consul.acl.blocked.node.registration` Although the metric is defined, there is no code which ever sets its value - the code in question is genuinely asymmetric - there are 3 types of object for which registration can be tracked, but only 2 for which deregistration can be tracked. --- agent/local/state.go | 4 ---- 1 file changed, 4 deletions(-) diff --git a/agent/local/state.go b/agent/local/state.go index 74641a068..b95cec5a6 100644 --- a/agent/local/state.go +++ b/agent/local/state.go @@ -46,10 +46,6 @@ var StateCounters = []prometheus.CounterDefinition{ Name: []string{"acl", "blocked", "node", "registration"}, Help: "Increments whenever a registration fails for a node (blocked by an ACL)", }, - { - Name: []string{"acl", "blocked", "node", "deregistration"}, - Help: "Increments whenever a deregistration fails for a node (blocked by an ACL)", - }, } const fullSyncReadMaxStale = 2 * time.Second