diff options
Diffstat (limited to 'plugin/dns64/metrics.go')
-rw-r--r-- | plugin/dns64/metrics.go | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/plugin/dns64/metrics.go b/plugin/dns64/metrics.go new file mode 100644 index 000000000..892455adb --- /dev/null +++ b/plugin/dns64/metrics.go @@ -0,0 +1,17 @@ +package dns64 + +import ( + "github.com/coredns/coredns/plugin" + + "github.com/prometheus/client_golang/prometheus" +) + +var ( + // RequestsTranslatedCount is the number of DNS requests translated by dns64. + RequestsTranslatedCount = prometheus.NewCounterVec(prometheus.CounterOpts{ + Namespace: plugin.Namespace, + Subsystem: "dns", + Name: "requests_dns64_translated_total", + Help: "Counter of DNS requests translated by dns64.", + }, []string{"server"}) +) |