diff options
author | 2020-03-26 09:17:33 +0100 | |
---|---|---|
committer | 2020-03-26 09:17:33 +0100 | |
commit | 19cfa2960cc415e0e38d36fc9d9325bd636c000e (patch) | |
tree | 92862740f97d0378fb0f6dced375fb2d9442271a /plugin/autopath/metrics.go | |
parent | eb23cce1a766ee37cbfc884928f668dac4d0ddff (diff) | |
download | coredns-19cfa2960cc415e0e38d36fc9d9325bd636c000e.tar.gz coredns-19cfa2960cc415e0e38d36fc9d9325bd636c000e.tar.zst coredns-19cfa2960cc415e0e38d36fc9d9325bd636c000e.zip |
Cleanup metrics (#3776)
Cleanup a variety of metric issues.
* Eliminate department of redundancy "count_total" naming.
* Use the plural of the unit when appropriate. (ex, "requests")
* Remove label names from metric names where appropriate. (ex, "rcode")
* Simplify request metrics by consolidating type label in to the base
request counter.
* Re-generate man pages.
Signed-off-by: Ben Kochie <superq@gmail.com>
Co-authored-by: Ben Kochie <superq@gmail.com>
Diffstat (limited to 'plugin/autopath/metrics.go')
-rw-r--r-- | plugin/autopath/metrics.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugin/autopath/metrics.go b/plugin/autopath/metrics.go index ae25ab79e..cfb276274 100644 --- a/plugin/autopath/metrics.go +++ b/plugin/autopath/metrics.go @@ -10,7 +10,7 @@ var ( autoPathCount = prometheus.NewCounterVec(prometheus.CounterOpts{ Namespace: plugin.Namespace, Subsystem: "autopath", - Name: "success_count_total", + Name: "success_total", Help: "Counter of requests that did autopath.", }, []string{"server"}) ) |