aboutsummaryrefslogtreecommitdiff
path: root/plugin/forward/metrics.go
diff options
context:
space:
mode:
authorGravatar Pat Downey <patdowney@users.noreply.github.com> 2023-07-04 15:35:55 +0100
committerGravatar GitHub <noreply@github.com> 2023-07-04 16:35:55 +0200
commitea293da1d6bb0c4f598c8790c6941d56c79c0aa3 (patch)
tree9e808cf986b72673e2b9b176624cada501cd594e /plugin/forward/metrics.go
parent6e1263d3d9ae1deef399df23d4ae47d2c3154e03 (diff)
downloadcoredns-ea293da1d6bb0c4f598c8790c6941d56c79c0aa3.tar.gz
coredns-ea293da1d6bb0c4f598c8790c6941d56c79c0aa3.tar.zst
coredns-ea293da1d6bb0c4f598c8790c6941d56c79c0aa3.zip
Fix forward metrics for backwards compatibility (#6178)
Diffstat (limited to 'plugin/forward/metrics.go')
-rw-r--r--plugin/forward/metrics.go5
1 files changed, 3 insertions, 2 deletions
diff --git a/plugin/forward/metrics.go b/plugin/forward/metrics.go
index da0905525..246dc6500 100644
--- a/plugin/forward/metrics.go
+++ b/plugin/forward/metrics.go
@@ -9,13 +9,14 @@ import (
// Variables declared for monitoring.
var (
- HealthcheckBrokenCount = promauto.NewCounter(prometheus.CounterOpts{
+ healthcheckBrokenCount = promauto.NewCounter(prometheus.CounterOpts{
Namespace: plugin.Namespace,
Subsystem: "forward",
Name: "healthcheck_broken_total",
Help: "Counter of the number of complete failures of the healthchecks.",
})
- MaxConcurrentRejectCount = promauto.NewCounter(prometheus.CounterOpts{
+
+ maxConcurrentRejectCount = promauto.NewCounter(prometheus.CounterOpts{
Namespace: plugin.Namespace,
Subsystem: "forward",
Name: "max_concurrent_rejects_total",