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: Metrics missing when using query component #821

Closed
rsommer opened this issue Feb 7, 2019 · 2 comments
Closed

query: Metrics missing when using query component #821

rsommer opened this issue Feb 7, 2019 · 2 comments

Comments

@rsommer
Copy link

rsommer commented Feb 7, 2019

Thanos, Prometheus and Golang version used

thanos, version 0.2.1 (branch: HEAD, revision: 30e7cbdafd3ef01189f202945c2728fcf37e1cf1)
  build user:       root@79ffcf51ff9b
  build date:       20181227-15:44:56
  go version:       go1.11.4
prometheus, version 2.6.0 (branch: HEAD, revision: dbd1d58c894775c0788470944b818cc724f550fb)
  build user:       root@bf5760470f13
  build date:       20181217-15:14:46
  go version:       go1.11.3

What happened
I recently did setup thanos for long term metric storage. After the first few weeks of running the setup, I tried to zoom out in grafana to see how everything works out. While zooming out to 30 days in grafana, I started to see gaps in the displayed metrics. There is metric data for the selected time range. If I do query prometheus directly, I get the expected results.

What you expected to happen
Getting all existing data when querying via thanos query.

Full logs to relevant components
query.log

Queried via prometheus:

node-monitoring-30-days-via-prometheus

Queried via thanos query:

node-monitoring-30-days-via-thanos

@jojohappy
Copy link
Member

jojohappy commented Feb 7, 2019

hi, it seems to be as same as this issue, it has been fixed in this PR.

You could try to upgrade the Thanos with the newest master head or wait for the 0.3.0 version, the new version will come soon.

@rsommer
Copy link
Author

rsommer commented Feb 7, 2019

@jojohappy you're right, I just built thanos from the master branch and the problem has gone away. I did miss the referenced bug, sorry for the duplication.

@rsommer rsommer closed this as completed Feb 7, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants