mirror of
https://github.com/coredns/coredns.git
synced 2025-10-30 17:53:21 -04:00
plugin/reload: Add metrics (#2922)
* Issue 2920 - Add failed reload counter metrics * typo fix * Requested Changes
This commit is contained in:
committed by
Miek Gieben
parent
cd176f859b
commit
ad352cee88
17
plugin/reload/metrics.go
Normal file
17
plugin/reload/metrics.go
Normal file
@@ -0,0 +1,17 @@
|
||||
package reload
|
||||
|
||||
import (
|
||||
"github.com/coredns/coredns/plugin"
|
||||
|
||||
"github.com/prometheus/client_golang/prometheus"
|
||||
)
|
||||
|
||||
// Metrics for the reload plugin
|
||||
var (
|
||||
FailedCount = prometheus.NewCounter(prometheus.CounterOpts{
|
||||
Namespace: plugin.Namespace,
|
||||
Subsystem: "reload",
|
||||
Name: "failed_count_total",
|
||||
Help: "Counter of the number of failed reload attempts.",
|
||||
})
|
||||
)
|
||||
Reference in New Issue
Block a user