From e3534205c7c3a89b09c9a9e2aca1a2159eb9ecde Mon Sep 17 00:00:00 2001 From: Tobias Schmidt Date: Wed, 20 Jun 2018 12:35:57 +0200 Subject: [PATCH] Rename forward metrics socket_count_total to sockets_open (#1885) The prometheus naming convention states only counters should have a `_total` suffix, so that gagues and counters can be easily distinguished. --- plugin/forward/metrics.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin/forward/metrics.go b/plugin/forward/metrics.go index b0368f722..063e2dc00 100644 --- a/plugin/forward/metrics.go +++ b/plugin/forward/metrics.go @@ -44,7 +44,7 @@ var ( SocketGauge = prometheus.NewGaugeVec(prometheus.GaugeOpts{ Namespace: plugin.Namespace, Subsystem: "forward", - Name: "socket_count_total", + Name: "sockets_open", Help: "Gauge of open sockets per upstream.", }, []string{"to"}) )