grafana / k6

A modern load testing tool, using Go and JavaScript - https://k6.io
GNU Affero General Public License v3.0
25.07k stars 1.24k forks source link

native gRPC failed invocations rate metric #3164

Open murlock1000 opened 1 year ago

murlock1000 commented 1 year ago

Feature Description

Implement native metric for the rate of failed gRPC invocations, similar to http_req_failed.

Suggested Solution (optional)

Rate calculated as follows:

response = client.invoke()
grpc_req_failed.add(response.status === grpc.StatusOK);

Already existing or connected issues / PRs (optional)

No response

olegbespalov commented 1 year ago

Hi @murlock1000 !

Sorry for the slow response :cry:

Could you please describe the use case? I'm trying to understand better why you want to see the native metric instead of using the custom one. Thanks!

murlock1000 commented 1 year ago

I would expect feature parity between http and grpc metrics. It would also be used for setting up native instead of custom thresholds.