aboutsummaryrefslogtreecommitdiff
path: root/plugin/metrics/vars/report.go
diff options
context:
space:
mode:
Diffstat (limited to 'plugin/metrics/vars/report.go')
-rw-r--r--plugin/metrics/vars/report.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugin/metrics/vars/report.go b/plugin/metrics/vars/report.go
index 5aaff2f00..9761f626f 100644
--- a/plugin/metrics/vars/report.go
+++ b/plugin/metrics/vars/report.go
@@ -9,7 +9,7 @@ import (
// Report reports the metrics data associated with request. This function is exported because it is also
// called from core/dnsserver to report requests hitting the server that should not be handled and are thus
// not sent down the plugin chain.
-func Report(server string, req request.Request, zone, rcode string, size int, start time.Time) {
+func Report(server string, req request.Request, zone, rcode, plugin string, size int, start time.Time) {
// Proto and Family.
net := req.Proto()
fam := "1"
@@ -29,5 +29,5 @@ func Report(server string, req request.Request, zone, rcode string, size int, st
ResponseSize.WithLabelValues(server, zone, net).Observe(float64(size))
RequestSize.WithLabelValues(server, zone, net).Observe(float64(req.Len()))
- ResponseRcode.WithLabelValues(server, zone, rcode).Inc()
+ ResponseRcode.WithLabelValues(server, zone, rcode, plugin).Inc()
}