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

Update gRPC metrics to match v2 and spec #572

Merged
merged 1 commit into from
Oct 5, 2022
Merged

Conversation

kylelemons
Copy link
Contributor

To use v0 and v2 in the same binary, they require identical labels. The v2 client currently is set up to match the spec, and so update the v0 middleware to do the same for legacy users of this middleware.

@kylelemons kylelemons requested a review from a team as a code owner October 4, 2022 21:27
@kylelemons kylelemons requested review from fishy, konradreiche and mterwill and removed request for a team October 4, 2022 21:27
@@ -55,6 +55,7 @@ var (
serverActiveRequestsLabels = []string{
serviceLabel,
methodLabel,
typeLabel,
Copy link
Member

@mterwill mterwill Oct 5, 2022

Choose a reason for hiding this comment

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

FWIW I don't actually see the type label in the spec for grpc_server_active_requests and grpc_client_active_requests, we should add it? (This does appear to match v2 though)

Just saw your other PR.

@kylelemons kylelemons merged commit 1f8e297 into master Oct 5, 2022
@kylelemons kylelemons deleted the grpc_metrics_spec branch October 5, 2022 16:08
kylelemons added a commit that referenced this pull request Oct 25, 2022
* Upgrade thrift to 0.17.0

This allows us to remove tDuplicateToProtocol and getClientError
implementation as they are in thrift v0.17.0 now.

There's no breaking changes between 0.16.0 and 0.17.0 regarding go
library/compiler.

* breakerbp: Fix prometheus gauge

In the current implementation, the gauge value is only set when the
state of the breaker changes. Which means if a breaker never got
tripped, we would not report the gauge value at all.

Set an initial value of 1 in constructor.

* Update gRPC metrics to match v2 and spec (#572)

* feat(secrets): support for csi directories (#565)

Co-authored-by: Ted Dorfeuille <[email protected]>
Co-authored-by: Matt Terwilliger <[email protected]>

Co-authored-by: Yuxuan 'fishy' Wang <[email protected]>
Co-authored-by: Kyle Lemons <[email protected]>
Co-authored-by: Ted <[email protected]>
Co-authored-by: Ted Dorfeuille <[email protected]>
Co-authored-by: Matt Terwilliger <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

4 participants