-
Notifications
You must be signed in to change notification settings - Fork 698
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 for WithSubsystem() #632
Comments
What is a subsystem? I'm not a prometheus expert, could you elaborate on the problem and use case you have? |
Hello, Similar to ConstLabels, prometheus.CounterOpts, GaugeOpts, etc also accepts a parameter "Subsystem". Use case: So, this helps in readability and debuggability to understand which system component was the source of metric without even looking at metric instance label. This is the reason for seeking subsystem support for grpc metrics also. |
OK, so the proposal is for a new |
Thanks Johan. Raised #639 |
@johanbrandhorst Raised new PR #643 . I had to close earlier one due to some CLA issues. |
Similar to WithConstLabels(), can we also have WithSubsystem() in github.com/grpc-ecosystem/go-grpc-middleware/providers/prometheus? This will help to rename grpc metrics across different processes. Without this, it causes confusion and difficulty in understanding.
The text was updated successfully, but these errors were encountered: