-
Notifications
You must be signed in to change notification settings - Fork 12.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
Extra settings for the Prometheus datasource when used for Thanos or other LTS solutions #16665
Comments
I'll try to implement something to what we discussed in #16574 . @bergquist Could you help me on the UX bits?
Maybe we should prefix flags? instead of |
SGTM; it would be better long term to allow code reuse between datasources, and have a separate datasource for Thanos (or Cortex). But for now, adding it to the Prometheus datasource seems fine. |
UX: I'd add a Long Term Storage section similar to Elastic's custom area and then have a dropdown that defaults to None. When Thanos is selected from the dropdown, additional fields pop up. |
I'm really horrible at frontend stuff :D so right now I'll do a PR with config thingy. If it isn't too complicated will try to do js / html as well |
Fixed via #19121 |
Thanos offers extra settings that can be very useful when looking at long term data such as
downsampling
,timeout
,partial_response
,dedup
Instead of building a new datasource plugin for Thanos which would be a lot of code duplication, we should add a setting to the Prometheus datasource where LTS storage alternatives can be configured. Query editors and other parts of Grafana can then show those when it makes sense instead of duplicating all other aspects of the Prometheus datasource.
The text was updated successfully, but these errors were encountered: