mirror of
https://github.com/coredns/coredns.git
synced 2025-10-28 00:34:24 -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
@@ -83,6 +83,7 @@ func hook(event caddy.EventName, info interface{}) error {
|
||||
_, err := instance.Restart(corefile)
|
||||
if err != nil {
|
||||
log.Errorf("Corefile changed but reload failed: %s", err)
|
||||
FailedCount.Add(1)
|
||||
continue
|
||||
}
|
||||
// we are done, if the plugin was not set used, then it is not.
|
||||
|
||||
Reference in New Issue
Block a user