You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For configuration, and more advanced use cases see [Configuration](#Configuration)
28
+
29
+
## Metrics
30
+
31
+
Metrics exposed use the following labels:
32
+
*`type` - one of `unary`, `client_stream`, `server_stream` or `bidi`
33
+
*`service` - name of the service, for example `myservice.greet.v1`
34
+
*`method` - name of the method, for example `SayHello`
35
+
*`code` - the resulting outcome of the RPC. The codes match [connect-go Error Codes](https://connect.build/docs/protocol#error-codes) with the addition of `ok` for succesful RPCs.
36
+
37
+
38
+
### Server-side metrics
39
+
* Counter `connect_server_started_total` with `(type, service, method)` labels
40
+
* Counter `connect_server_handled_total` with `(type, service, method, code)` labels
41
+
* (optionally) Histogram `connect_server_handled_seconds` with `(type, service, method, code)` labels
42
+
43
+
### Client-side metrics
44
+
* Counter `connect_client_started_total` with `(type, service, method)` labels
45
+
* Counter `connect_client_handled_total` with `(type, service, method, code)` labels
46
+
* (optionally) Histogram `connect_client_handled_seconds` with `(type, service, method, code)` labels
You may want to register metrics against a [Prometheus Registry](https://pkg.go.dev/github.com/prometheus/client_golang/prometheus#Registry). You can do this with the following:
0 commit comments