Add metrics

Signed-off-by: Miek Gieben <miek@miek.nl>
This commit is contained in:
Miek Gieben
2020-01-18 08:39:02 +01:00
parent 272823932f
commit b371eb679d
4 changed files with 27 additions and 1 deletions

View File

@@ -91,6 +91,13 @@ What metrics should we do? If any? Number of clusters? Number of endpoints and h
This plugin report readiness to the ready plugin. This will happen after a gRPC stream has been
established to the control plane.
## Metrics
If monitoring is enabled (via the *prometheus* plugin) then the following metric are exported:
* `coredns_traffic_clusters_tracked{}` the number of tracked clusters.
## Examples
~~~
@@ -123,7 +130,6 @@ is not implemented.
## TODO
* metrics?
* credentials (other than TLS) - how/what?
* is the protocol correctly implemented? Should we not have a 10s tick, but wait for responses from
the control plane?