Update instrumentation.md

Use prescribed naming conventions in the example for prescribed naming conventions.
This commit is contained in:
Han Kang 2021-02-04 08:15:30 -08:00 committed by GitHub
parent 81ece45949
commit f7f69ff66a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -43,7 +43,7 @@ want and add a slice of the label names to the definition.
```go
requestCounter = prometheus.NewCounterVec(
prometheus.CounterOpts{
Name: "apiserver_request_count",
Name: "apiserver_request_total",
Help: "Counter of apiserver requests broken out for each verb, API resource, client, and HTTP response code.",
},
[]string{"verb", "resource", "client", "code"},