Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Export grpc request count metric #1781

Closed
shouichi opened this issue Jan 6, 2021 · 2 comments
Closed

Export grpc request count metric #1781

shouichi opened this issue Jan 6, 2021 · 2 comments
Labels

Comments

@shouichi
Copy link

shouichi commented Jan 6, 2021

Feature Description

The http_reqs metric is available for HTTP, we need a similar metric for gRPC.

Suggested Solution (optional)

Simply count grpc unary requests and export the count (I'm not sure k6 supports grpc stream).

@na--
Copy link
Member

na-- commented Jan 6, 2021

k6 doesn't support gRPC streaming yet. As to the count, there's a reason we don't have grpc_req_count - you can get the count from the grpc_req_duration metric by specifying count as a part of the summaryTrendStats option. For example:

k6 run --summary-trend-stats="avg,min,med,max,p(90),p(95),p(99.9),count" grpc-script.js

I see that's not documented very well, so I added a new issue (grafana/k6-docs#184) to correct that... And the reason that http_reqs exists is that it precedes the http_req_duration.count significantly, the count for Trend metrics was only introduced in k6 v0.26.0.

@shouichi
Copy link
Author

shouichi commented Jan 6, 2021

Thanks for the explanation! Confirmed that the option you gave worked, feel free to close this.

@na-- na-- closed this as completed Jan 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants