Skip to content

Change grpc_prometheus dependency source #1968

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

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

loosebazooka
Copy link
Member

@loosebazooka loosebazooka commented Mar 13, 2025

Old source has been deprecated and we're expected to pull the dependency from go-grpc-middleware now

Summary

See: https://github.com/grpc-ecosystem/go-grpc-prometheus?tab=readme-ov-file#deprecated-go-grpc-interceptors-for-prometheus-monitoring

Added some labels since we have a bunch of different kind of servers but I don't know if it actually adds anything.

Someone more familiar with prometheus is going to have to check me on a few things here.

Release Note

NONE

Documentation

NONE

@loosebazooka loosebazooka requested review from a team as code owners March 13, 2025 15:50
@loosebazooka loosebazooka marked this pull request as draft March 13, 2025 15:52
@loosebazooka loosebazooka marked this pull request as ready for review March 17, 2025 15:10
@loosebazooka loosebazooka force-pushed the prometheus branch 2 times, most recently from 01363b6 to 971ed1c Compare March 17, 2025 15:19
Old source has been deprecated and we're expected to pull the
dependency from go-grpc-middleware now

Signed-off-by: Appu Goundan <appu@google.com>
@loosebazooka loosebazooka marked this pull request as draft March 19, 2025 13:41
@loosebazooka
Copy link
Member Author

Things I've discovered:

  • The duplex server is still pulling in an old version of the prometheus go library
  • All of our code expects the default server metrics and default registerer
  • I think I can kinda fix this but wont be able to pull out the old library completely until duplex server is fixed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants