diff options
author | 2022-09-12 22:35:59 +0200 | |
---|---|---|
committer | 2022-09-12 16:35:59 -0400 | |
commit | dc84196690ac74c4d735d5f3d3eb9980d7a7ffc6 (patch) | |
tree | b18cae2ddd00bac0dc4f8f5549e810111309ddf9 /plugin/acl/metrics.go | |
parent | 8655b7cbc35bc2030b5f3db6d94bd9b5a94f87c3 (diff) | |
download | coredns-dc84196690ac74c4d735d5f3d3eb9980d7a7ffc6.tar.gz coredns-dc84196690ac74c4d735d5f3d3eb9980d7a7ffc6.tar.zst coredns-dc84196690ac74c4d735d5f3d3eb9980d7a7ffc6.zip |
plugin/acl : add view label into metrics (#5615)
Signed-off-by: Ondřej Benkovský <ondrej.benkovsky@jamf.com>
Signed-off-by: Ondřej Benkovský <ondrej.benkovsky@jamf.com>
Diffstat (limited to 'plugin/acl/metrics.go')
-rw-r--r-- | plugin/acl/metrics.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/plugin/acl/metrics.go b/plugin/acl/metrics.go index 76f30b5a6..04d728bcd 100644 --- a/plugin/acl/metrics.go +++ b/plugin/acl/metrics.go @@ -14,19 +14,19 @@ var ( Subsystem: pluginName, Name: "blocked_requests_total", Help: "Counter of DNS requests being blocked.", - }, []string{"server", "zone"}) + }, []string{"server", "zone", "view"}) // RequestFilterCount is the number of DNS requests being filtered. RequestFilterCount = promauto.NewCounterVec(prometheus.CounterOpts{ Namespace: plugin.Namespace, Subsystem: pluginName, Name: "filtered_requests_total", Help: "Counter of DNS requests being filtered.", - }, []string{"server", "zone"}) + }, []string{"server", "zone", "view"}) // RequestAllowCount is the number of DNS requests being Allowed. RequestAllowCount = promauto.NewCounterVec(prometheus.CounterOpts{ Namespace: plugin.Namespace, Subsystem: pluginName, Name: "allowed_requests_total", Help: "Counter of DNS requests being allowed.", - }, []string{"server"}) + }, []string{"server", "view"}) ) |