-
Notifications
You must be signed in to change notification settings - Fork 543
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
Idea: Measure processed samples on MQE #10138
Comments
The place to measure instant vector selectors would be here:
You should be able to use the Passing it back through the stack is slightly more complex. My suggestion though would be to use the mimir/pkg/streamingpromql/query.go Line 556 in be2f23b
mimir/pkg/streamingpromql/engine.go Line 56 in be2f23b
Range vector selectors are a bit more complex because of the way points can be reused from a buffer. So it depends what you're counting here in terms of "processed" samples. You'll need to do something similar around here, depending on how you want to count samples at each step:
|
I don't think we should add this to I also don't think we should emit this as a metric when there's already a mechanism to pass this data back to the caller of the query. Instead, we should implement something specific to tracking query stats, and use that to populate a There are a bunch of fields on
If we can, we should do whatever Prometheus' engine does, unless it doesn't make sense in the context of MQE. |
What is the problem you are trying to solve?
In the effort of trying to measure throughput in Mimir, we've realized
MQE
does not make processed samples data available as thePromQL
engine does.Which solution do you envision (roughly)?
Make
MQE
count samples loaded from storage and expose it tomimir-stats
so we can get it to a response header for each query.Have you considered any alternatives?
I'm happy to listen to any alternatives. The objective is to measure throughput in the best possible way.
Any additional context to share?
Related work on measuring Throughput in Mimir has been done in #10103, #9985, #7966 and here.
How long do you think this would take to be developed?
Small (<= 1 month dev)
What are the documentation dependencies?
No response
Proposer?
No response
The text was updated successfully, but these errors were encountered: