aboutsummaryrefslogtreecommitdiff
path: root/plugin/reload/reload.go
diff options
context:
space:
mode:
authorGravatar Zou Nengren <zounengren@cmss.chinamobile.com> 2020-03-31 14:07:36 +0800
committerGravatar GitHub <noreply@github.com> 2020-03-31 08:07:36 +0200
commit87214a4c5c05c8918bfe73f734ff4dbd390319dd (patch)
tree9ca83d03ccdb80572f0166e84add67bb23a1184f /plugin/reload/reload.go
parent10d176b811e229f2b7bc72c342f54f6acfa69fbd (diff)
downloadcoredns-87214a4c5c05c8918bfe73f734ff4dbd390319dd.tar.gz
coredns-87214a4c5c05c8918bfe73f734ff4dbd390319dd.tar.zst
coredns-87214a4c5c05c8918bfe73f734ff4dbd390319dd.zip
introduce metric naming test (#3789)
* introduce metric naming test Signed-off-by: zounengren <zounengren@cmss.chinamobile.com> * Update metrics.go Signed-off-by: zounengren <zounengren@cmss.chinamobile.com>
Diffstat (limited to 'plugin/reload/reload.go')
-rw-r--r--plugin/reload/reload.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugin/reload/reload.go b/plugin/reload/reload.go
index 0b58d2a8e..364a2b6f0 100644
--- a/plugin/reload/reload.go
+++ b/plugin/reload/reload.go
@@ -107,7 +107,7 @@ func hook(event caddy.EventName, info interface{}) error {
reloadInfo.WithLabelValues("md5", hex.EncodeToString(md5sum[:])).Set(1)
if err != nil {
log.Errorf("Corefile changed but reload failed: %s", err)
- FailedCount.Add(1)
+ failedCount.Add(1)
continue
}
// we are done, if the plugin was not set used, then it is not.