-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
How to capture storage metrics #6219
Comments
@yurishkuro If we can have storage specific metrics, does it makes sense to then go with Option 2? |
Not necessarily - we can still pass a telset to the factories to do their custom metrics. Personally I am leaning to option 2 as well but with a caveat that we provide a shared decorator component. Then each storage factory can still produce consistent metrics with decorator, not duplicate the code, and have the ability to generate their own metrics as well. |
@yurishkuro Sounds good. So is the next step to provide a decorator similar to https://github.com/jaegertracing/jaeger/blob/main/storage/spanstore/metrics/decorator.go#L46 but with the new TraceReader? The current decorator does implement |
I don't think v2 decorator is needed at this point, because we don't have v2 native storage implementations, they all go via v1 factories. So the change would be to modify all v1 factories to
This way v2 adapter will automatically get underlying objects with metrics. |
Opening issue to discuss how Jaeger should provide metrics for storage backends.
Option 1: Metrics are provided via decorator
Option 2: Metrics are provided by the storage implementation
The text was updated successfully, but these errors were encountered: