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 upunittest does not work with complex expressions #4749
Comments
mbeltre
changed the title
test
unittest does not work with complex expressions
Oct 16, 2018
This comment has been minimized.
This comment has been minimized.
|
I'm not super familiar with this new feature but I suspect that the problem is because the metric doesn't increase. If I change the input series to this, the alert fires: - interval: 1m
input_series:
- series: my_metric_count
values: 600 1000 12300 12312312 12313132132cc @codesome |
simonpasquier
added
the
component/promtool
label
Oct 17, 2018
This comment has been minimized.
This comment has been minimized.
|
thanks, that did actually work. I suppose it's using the first value as a baseline, i din't think about that. |
mbeltre
closed this
Oct 18, 2018
This comment has been minimized.
This comment has been minimized.
|
@mbeltre The first value from input is at timestamp |
lock
bot
locked and limited conversation to collaborators
Apr 16, 2019
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
mbeltre commentedOct 16, 2018
•
edited
Bug Report
What did you do?
I have the following rules file:
And the following unit test file
What did you expect to see?
I was expecting the
TestAlertComplexto be triggered in this case.What did you see instead? Under which circumstances?
Environment
System information:
Prometheus version: