diff options
Diffstat (limited to 'plugin/grpc')
-rw-r--r-- | plugin/grpc/README.md | 4 | ||||
-rw-r--r-- | plugin/grpc/metrics.go | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/plugin/grpc/README.md b/plugin/grpc/README.md index 36314232a..5e6148da9 100644 --- a/plugin/grpc/README.md +++ b/plugin/grpc/README.md @@ -63,8 +63,8 @@ Also note the TLS config is "global" for the whole grpc proxy if you need a diff If monitoring is enabled (via the *prometheus* plugin) then the following metric are exported: * `coredns_grpc_request_duration_seconds{to}` - duration per upstream interaction. -* `coredns_grpc_request_count_total{to}` - query count per upstream. -* `coredns_grpc_response_rcode_count_total{to, rcode}` - count of RCODEs per upstream. +* `coredns_grpc_requests_total{to}` - query count per upstream. +* `coredns_grpc_responses_total{to, rcode}` - count of RCODEs per upstream. and we are randomly (this always uses the `random` policy) spraying to an upstream. ## Examples diff --git a/plugin/grpc/metrics.go b/plugin/grpc/metrics.go index 76b186bee..e4a3ce2f5 100644 --- a/plugin/grpc/metrics.go +++ b/plugin/grpc/metrics.go @@ -11,13 +11,13 @@ var ( RequestCount = prometheus.NewCounterVec(prometheus.CounterOpts{ Namespace: plugin.Namespace, Subsystem: "grpc", - Name: "request_count_total", + Name: "requests_total", Help: "Counter of requests made per upstream.", }, []string{"to"}) RcodeCount = prometheus.NewCounterVec(prometheus.CounterOpts{ Namespace: plugin.Namespace, Subsystem: "grpc", - Name: "response_rcode_count_total", + Name: "responses_total", Help: "Counter of requests made per upstream.", }, []string{"rcode", "to"}) RequestDuration = prometheus.NewHistogramVec(prometheus.HistogramOpts{ |