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 up`promtool test rules` fails for alerts composed of recorded metrics with heavy input_series #4838
Comments
bititanb
changed the title
`promtool test rules` for alerts composed of recorded metrics with timeseries with many vals fails
`promtool test rules` fails for alerts composed of recorded metrics with heavy input_series
Nov 8, 2018
This comment has been minimized.
This comment has been minimized.
|
@bititanb Thanks for reporting this, I will have a look. |
simonpasquier
added
the
component/promtool
label
Nov 9, 2018
This comment has been minimized.
This comment has been minimized.
|
After digging a bit I found that the reason is not But, I haven't found the actual issue. Still checking. |
This comment has been minimized.
This comment has been minimized.
|
Sorry, my bad, you are right. Recording rules are evaluated after |
This comment has been minimized.
This comment has been minimized.
|
Checked #4851. Works fine for me even with much more complex expressions. Thank you, this really helped me! |
This comment has been minimized.
This comment has been minimized.
|
Don't close till that PR is not merged. |
gouthamve
closed this
in
#4851
Nov 22, 2018
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
bititanb commentedNov 8, 2018
Bug Report
What did you do?
Executing
promtool test rulesfor alerts composed of recorded (record rules) metrics that use timeseries with many valuesWhat did you expect to see?
What did you see instead? Under which circumstances?
I get:
When:
Environment
Linux 4.15.0-36-generic x86_64I got your configs from docs (https://github.com/prometheus/prometheus/blob/master/docs/configuration/unit_testing_rules.md) and modified them to reproduce the issue, see last revision:
https://gist.github.com/bititanb/017517528069ae1d0d70502bf95f6e26/revisions?diff=unified
Might help:
I found out that it fails here, because of
minValidTimebecomes too high, so metric got discarded. This is the state whenErrOutOfBoundsthrows (values: '0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 500+0x900'):And this is when it works fine (
values: '0 0 0 0 0 0 0 0 0 0 0 0 0 0 0'):Thanks.
CC @codesome