-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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: PromQL resets function does not detect reset. #3644
Comments
Some useful disscussion on IRC:
|
Tests that detect those. |
* Improved logging. * Improved debug matching info. * Fixed important matching bug. * Found reset bug, added issue #3644 and commented code. Signed-off-by: Bartlomiej Plotka <[email protected]>
* Improved logging. * Improved debug matching info. * Fixed important matching bug. * Found reset bug, added issue #3644 and commented code. Signed-off-by: Bartlomiej Plotka <[email protected]>
* Improved logging. * Improved debug matching info. * Fixed important matching bug. * Found reset bug, added issue #3644 and commented code. Signed-off-by: Bartlomiej Plotka <[email protected]>
* Improved logging. * Improved debug matching info. * Fixed important matching bug. * Found reset bug, added issue #3644 and commented code. Signed-off-by: Bartlomiej Plotka <[email protected]>
* Improved logging. * Improved debug matching info. * Fixed important matching bug. * Found reset bug, added issue #3644 and commented code. Signed-off-by: Bartlomiej Plotka <[email protected]>
* Improved logging. * Improved debug matching info. * Fixed important matching bug. * Found reset bug, added issue #3644 and commented code. Signed-off-by: Bartlomiej Plotka <[email protected]>
…step towars Query pushdown! (#3631) * store: Added inprocess server to client. Signed-off-by: Bartlomiej Plotka <[email protected]> * Added initial PromQL acceptance tests. * Improved logging. * Improved debug matching info. * Fixed important matching bug. * Found reset bug, added issue #3644 and commented code. Signed-off-by: Bartlomiej Plotka <[email protected]>
Hello 👋 Looks like there was no activity on this issue for the last two months. |
Hello 👋 Looks like there was no activity on this issue for the last two months. |
Hello 👋 Looks like there was no activity on this issue for the last two months. |
Closing for now as promised, let us know if you need this to be reopened! 🤗 |
Hello 👋 Looks like there was no activity on this issue for the last two months. |
Hello 👋 Looks like there was no activity on this issue for the last two months. |
Hello 👋 Looks like there was no activity on this issue for the last two months. |
I would like to make a case here for the usefulness of fixing this bug, further and similar to the use-cases above mentioned by Brian Brazil. When doing blackbox style monitoring of monotonically increasing functions, resets() is very valuable in detecting issues. For example, the uptime counter of a network routing protocol like BGP. It ticks up until the session resets, at which point it restarts from zero. The resets() function catches that very well. Just monitoring the binary/bool "up" status of said BGP peer is not sufficient because it can bounce quickly in-between scrape intervals and go undetected. However, such quick events cannot escape resets() of an uptime counter. Very valuable. Please do fix! Beer 🍺 on me for the contributor! |
Just for awareness. I noticed PromQL
resets
https://prometheus.io/docs/prometheus/latest/querying/functions/#resets function has no right to work. (:This bug was introduced ~18.05.2020 by http://github.com/thanos-io/thanos/pull/2548
This is because for deduplication and downsampling precision we adjust resets on storage level:
thanos/pkg/query/iter.go
Line 188 in 49dad93
thanos/pkg/compact/downsample/downsample.go
Line 528 in 47f9a22
Since it's used in downsampling it irreversibly blocked the reset function against such downsampled data.
First of all, I wonder... Why someone would use such low level detail like when counter resets and how many were happening? Maybe to detect restarts? 🤔
Still, I think we should fix it, help wanted 🤗 I noticed this when adding those tests #3631
The text was updated successfully, but these errors were encountered: