Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign upRegression: range vector queries report samples multiple times #3337
Comments
EdSchouten
changed the title
Regression: range vector queries report metrics multip
Regression: range vector queries report metrics multiple times
Oct 23, 2017
EdSchouten
changed the title
Regression: range vector queries report metrics multiple times
Regression: range vector queries report samples multiple times
Oct 23, 2017
This comment has been minimized.
This comment has been minimized.
|
Can you reproduce this across all metrics or just a few selected ones? |
This comment has been minimized.
This comment has been minimized.
|
(Hi Fabian! Thanks for your awesome work on the new storage backend!) It seems I can reproduce this across all metrics; even implicit ones like |
This comment has been minimized.
This comment has been minimized.
|
Okay thanks, looks like I can reproduce it. By first intuition this may be the reason for the spike artefact you are seeing. But I cannot reproduce this equally right away. |
This comment has been minimized.
This comment has been minimized.
|
So for me it seems the repeated samples when doing a simple range query only happens once, i.e. if you do it over longer and longer periods of time, there's always the fixed same amount of lines at the beginning being duplicated. Can you confirm that behavior? Also, do I see it correctly that your scrape interval is 5 minutes? This is kind of a threshold number for scraping. Just for debugging purposes, could you reduce it to at most 2 minutes and check if the spiking behavior in the |
This comment has been minimized.
This comment has been minimized.
Yes, that seems to be the case exactly!
That's correct.
I'll give that a try first thing tomorrow morning, leave it running throughout the day and report back to you at the end of the day. |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
EdSchouten
closed this
Oct 26, 2017
This comment has been minimized.
This comment has been minimized.
lock
bot
commented
Mar 23, 2019
|
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |


EdSchouten commentedOct 23, 2017
What did you do? / What did you expect to see?
Set up Prometheus with the SNMP exporter. Ran the following query through the web interface:
ifInUcastPkts{ifIndex="10648"}[2h]Got the following results:
Notice that there are only 15 unique entries in the output; some of them are duplicated. I would have expected this to return
At the same time, I notice that more elaborate queries like
rate(ifInUcastPkts{ifIndex="10648"}[30h])don't work as expected. Every couple of hours, we see a huge jump in the graph that shouldn't be there:If I do the math by hand on the raw sample data, it should be a relatively flat graph with a value of ~2000; not peaks of millions.
Environment
Linux 3.16.0-4-amd64 x86_64
The official Prometheus 2.0.0-rc.1 Docker image.