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 upResults are nondeterministic for regex __name__ queries #3794
Comments
This comment has been minimized.
This comment has been minimized.
|
Using regexes on names like this is strongly discouraged (it's only for exploration/debugging), however it should not have this behaviour. Can you confirm that these time series exists continuously and there were no failed scrapes? Put another way, does this also happen when zoomed in to a 10m period? |
This comment has been minimized.
This comment has been minimized.
|
If I scroll using a 10m interval, the available series change all the time, but in a non-deterministic way. If I scroll back and forth by the same time-step, the series reported also vary. This also holds for 1m intervals. Interestingly for time periods within the retention time of prometheus (last 1d) the series are reported correctly. It seems, that this is a bug in the remote-storage-adapter (using influxdb). Hence I checked that the data in influxdb is correct by just using one (previously missing) series. There, the data gets read back by prometheus correctly and deterministic. The remote storage adapter I use is a up-to-date build of the offical version. |
This comment has been minimized.
This comment has been minimized.
|
Ah, does this happen without remote read being used? This is likely a bug in the adapter or influx, rather than in Prometheus itself. |
This comment has been minimized.
This comment has been minimized.
|
At least I did not see this weird behavior when querying local-only data. |
This comment has been minimized.
This comment has been minimized.
|
That's likely a bug in your remote read endpoint then. I'd suggest verifying that the endpoint itself works as expected first. |
brian-brazil
closed this
Mar 8, 2018
This comment has been minimized.
This comment has been minimized.
lock
bot
commented
Mar 22, 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. |
fmoessbauer commentedFeb 4, 2018
•
edited
What did you do?
Use regex query on medium time ranges (e.g. 1 week):
{__name__=~"mem_(active|buffers|cached|free|inactive).*", host="kronos"}What did you expect to see?
All matching series for the selected time range. If executed multiple times, I expect to see the same results (roughly, if range is up to now). The results should be deterministic.
What did you see instead? Under which circumstances?
Some series are missing for some timesteps. If I repeat the query multiple times, the results are nondeterministic. Sometimes all series are shown, sometimes not. Which series are fully shown also changes (see pictures). Prometheus retention is:
--storage.tsdb.retention=1dEnvironment
Linux 4.13.0-25-generic x86_64Probably related (appears a few times, but not time correlated to the issue)