mirror of
https://github.com/coredns/coredns.git
synced 2025-10-28 16:54:15 -04:00
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.
This commit is contained in:
committed by
Miek Gieben
parent
41c724780f
commit
e3534205c7
@@ -44,7 +44,7 @@ var (
|
|||||||
SocketGauge = prometheus.NewGaugeVec(prometheus.GaugeOpts{
|
SocketGauge = prometheus.NewGaugeVec(prometheus.GaugeOpts{
|
||||||
Namespace: plugin.Namespace,
|
Namespace: plugin.Namespace,
|
||||||
Subsystem: "forward",
|
Subsystem: "forward",
|
||||||
Name: "socket_count_total",
|
Name: "sockets_open",
|
||||||
Help: "Gauge of open sockets per upstream.",
|
Help: "Gauge of open sockets per upstream.",
|
||||||
}, []string{"to"})
|
}, []string{"to"})
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user