plugin/reload: Add metrics (#2922)
* Issue 2920 - Add failed reload counter metrics * typo fix * Requested Changes
This commit is contained in:
parent
cd176f859b
commit
ad352cee88
3 changed files with 24 additions and 0 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue