-
Notifications
You must be signed in to change notification settings - Fork 11.7k
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
The "resolution" option disappears in Grafana 8.5 #48081
Comments
Kind of able to replicate this - it doesn't look like the resolution field does not appear for new Prometheus queries. This looks like a deliberate change, but couldn't find anything in the changelog about this grafana/public/app/plugins/datasource/prometheus/querybuilder/components/PromQueryBuilderOptions.tsx Lines 85 to 95 in 68aac0b
|
It was removed on purpose, it's being deprecated. You can lower resolution by setting a lower max data points under query options (at top of query tab in panel edit) |
@torkelo is there a discussion or design document you could cite to help us understand the decision? It seems like a substantial change to replace a relative resolution ratio with an absolute "max points". We relied on resolution "1/2" to mean "whatever the rendered size of the panel, fetch half as many points in order to save fetch time, backend load, and client processing". That is no longer possible with an absolute max points parameter. Additionally, we were able to control the resolution individually per panel query (important because some queries are much heavier than others)-- but that has been lost. Given that a panel designer has decided that it's tolerable to display a series at lower than the available screen pixels, with this change we've gone from "whatever the rendered panel size, fetch and render at a multiple faster", to "set a worst case-limit on points, which will only apply to panels rendered larger than some certain size". |
I'll attempt a summary. (Shouldn't this change be mentioned in the changelog and documented?) before: after: |
This feature should not be deprecated without proper replacement. :( It might be off topic, but I have to say, it slowly gets tiring. Since a long time Grafana Is my way to visualize data. And it always has been a great experience. But some decisions recently are just... "off". And the question is "why" which doesn't properly gets answered. Three recent examples:
|
We're using resolution setting pretty heavily recently, so that is a bummer. |
another limitation of the new scheme: For example, we have a panel employing various transforms that ultimately outputs a detailed table, and 1:1 data points are required as input. With |
@belm0 the same was true before. resolution was just a way to specify how many times to divide max data points by |
I raised a feature in discussion. A better alternative to the resolution is to support a relative max data points, like 10% of the panel width. This would be better than the resolution 1/10 that it expands details when time range is small while collapse multiple data points into one when time range is large, always displaying as many data points as possible. |
I've responded to the discussion. I think we need to be very careful about sampling data without the help of a query language. For example, if you only wanted 10% of the points, what insight is wanted by sampling down the data? The max, the min, the average? If the query language does not provide this ability, perhaps the query language should? |
@srclosson not sure I understand what you mean, time series queries almost always involve some sort of sampling (for longer time ranges). And most query languages / APIs have ways to handle this downsampling (but in different ways). Prometheus does it via step and range vector (which has a delicate interplay). The resolution option was just a handy way to divide max data points, max data points is still there and kicking. We might add back resolution but I think then it will be under Query options (so it can be shared with all data sources) |
@torkelo Oh, I see! I guess I didn't understand. I guess I'm still wondering what max data points means. Let's say between time |
@srclosson Usually the 10000 points should be distributed evenly in the time range. For example in Prometheus data source, the resolution and the max data points will influence the "step" option, causing it to be a larger "step". |
this resolution option was quite handy and useful |
This feature was useful for showing different stats at varying resolutions in multi-query panels. For instance, i often create line graphs (with accompanying table of values) overlaying bar graphs, and the resolution allowed higher fidelity on the line graphs/table, with lower fidelity for the bar graphs so they actually look like bar graphs, and not a bunch of 1px lines. |
For those that still want this feature that was randomly removed... Go to Like so: "targets": [
{
"datasource": {
"type": "prometheus",
"uid": "yIBQYVL4k"
},
"editorMode": "code",
"expr": "(\n (1 - sum without (mode) (rate(node_cpu_seconds_total{job=\"node\", mode=~\"idle|iowait|steal\", instance=\"$instance\"}[$__rate_interval])))\n/ ignoring(cpu) group_left\n count without (cpu, mode) (node_cpu_seconds_total{job=\"node\", mode=\"idle\", instance=\"$instance\"})\n)\n",
"legendFormat": "{{cpu}}",
"refId": "A",
"intervalFactor": 5
}
] |
This issue has been automatically marked as stale because it has not had activity in the last year. It will be closed in 30 days if no further activity occurs. Please feel free to leave a comment if you believe the issue is still relevant. Thank you for your contributions! |
unstale :| |
What happened:
The "resolution option" disappears.
What you expected to happen:
The "resolution" does not disappear
How to reproduce it (as minimally and precisely as possible):
change the "resolution" to 1/1 and see it gone
Anything else we need to know?:
Grafana_resolution.mp4
Environment:
The text was updated successfully, but these errors were encountered: