-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
query: implement active query tracker #5521
Comments
This would be so awesome, internally within our team we already mentioned a couple of times it would be great to have feature like this. I had no idea PromQL engine supports this. @GiedriusS are you planning to work on this? I'm also wondering whether it would be possible to visualize this directly in the UI. |
@GiedriusS from a quick look into the Please let me know if this is in the right direction. I could work on this once my current PR is merged, if no one else is working on it/plans to. |
Feel free to pick this up! It would be very cool to also show the currently active queries in the UI. |
Some other random ideas when I talked with Aditi about this yesterday. Those can be features to work on in the future.
|
Is your proposal related to a problem?
If my Thanos Query is having latency issues while queries are running then I would like to be able to know what queries are being executed at that exact time.
Describe the solution you'd like
PromQL engine supports active query tracking by writing currently active queries to a file via mmap(2). I think we could add a new flag to enable support for this.
Describe alternatives you've considered
Using tracing and/or query logging. However, that data only appears after the fact. I would like to be able to know what queries are being executed when my Thanos Query/Store instances are being hammered.
Additional context
N/A
The text was updated successfully, but these errors were encountered: