Skip to content
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: 0.19.0-rc.0 regression - Query with resolution. Graphs are dotted instead of lines #3872

Closed
ahurtaud opened this issue Mar 4, 2021 · 2 comments · Fixed by #3887
Closed

Comments

@ahurtaud
Copy link
Contributor

ahurtaud commented Mar 4, 2021

Thanos, Prometheus and Golang version used:
thanos v0.19.0-rc.0
prometheus v2.25.0
grafana v7.4.3

What happened:
We are validating 0.19.0-rc.0, by just upgrading the version, most of our grafana dashboards are becoming dotted graphs instead of lines. I suspect some resolution/step issue. As on thanos UI, it happens only when we set a resolution to 30s (our scrape interval)
thanos-ui-reg

Step is a default behaviour we have in our grafana dahsboards.

What you expected to happen:
Like v0.18.0 and like prometheus UI, having connected lines for the query.
prometheus-ui

How to reproduce it (as minimally and precisely as possible):
Scrape something at 30s interval. Simple query raw metrics with a resolution of 30s. Compare Thanos replies vs prometheus reply.

@bwplotka
Copy link
Member

bwplotka commented Mar 4, 2021

Interesting. Thanks for reporting.

I wonder if it has something to do with the step changes we did with @hitanshu-mehta (#3740) 🤗

@hitanshu-mehta
Copy link
Contributor

hitanshu-mehta commented Mar 5, 2021

Yes. Resolution set in UI is overwritten every time by this line.

d := time.Duration(math.Max(float64(rangeSeconds/250), float64(defaultRangeQueryStep/time.Second))) * time.Second

I can fix this :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants