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

Support gRPC and gRPC-Web protocol in metrics #9483

Merged
merged 6 commits into from
Nov 8, 2022

Conversation

longit644
Copy link
Contributor

What does this PR do?

Add grpc, grpcweb as a protocol to metrics when incoming request is a gRPC or gRPC-Web request and use gRPC Code instead of HTTP Status for code.

Motivation

To enhance gRPC, gRPC-Web metrics.

Supersedes #9415

More

  • [ ] Added/updated tests
  • [ ] Added/updated documentation

Additional Notes

Sample prometheus metrics

traefik_router_request_duration_seconds_bucket{code="Unauthenticated",method="POST",protocol="grpc",router="...",service="...",le="0.005"} 2

@ldez ldez added this to To review in v2 via automation Oct 28, 2022
@ldez ldez added this to the next milestone Oct 28, 2022
@kevinpollet kevinpollet force-pushed the feature/grpc-code-metrics branch 2 times, most recently from 66ed12a to 106cb35 Compare October 28, 2022 09:48
Copy link
Member

@kevinpollet kevinpollet left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks 👍

Copy link
Contributor

@ldez ldez left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Member

@rtribotte rtribotte left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks 👍

@traefiker traefiker merged commit 240fb87 into traefik:master Nov 8, 2022
v2 automation moved this from To review to Done Nov 8, 2022
@ldez ldez removed this from Done in v2 Nov 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

None yet

5 participants