plugin/autopath: per server metrics (#1730)

Implement per server metrics in autopath; also don't export the metric.

Updated readme as well.
This commit is contained in:
Miek Gieben
2018-04-25 16:43:57 +01:00
committed by Chris O'Haver
parent d3f2d4a291
commit 5c3e436d71
4 changed files with 8 additions and 6 deletions

View File

@@ -29,7 +29,9 @@ If a plugin implements the `AutoPather` interface then it can be used.
If monitoring is enabled (via the *prometheus* directive) then the following metric is exported:
* `coredns_autopath_success_count_total{}` - counter of successfully autopath-ed queries.
* `coredns_autopath_success_count_total{server}` - counter of successfully autopath-ed queries.
The `server` label is explained in the *metrics* plugin documentation.
## Examples