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 upExpected different result from count() #4735
Comments
codesome
referenced this issue
Oct 12, 2018
Merged
etcd-mixin: Fix EtcdInsufficientMembers alerting #10150
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
|
/cc @metalmatze |
This comment has been minimized.
This comment has been minimized.
|
Thanks @brian-brazil for the blog post! |
codesome
closed this
Oct 12, 2018
This comment has been minimized.
This comment has been minimized.
|
Thanks for further looking into at @codesome. |
lock
bot
locked and limited conversation to collaborators
Apr 10, 2019
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
codesome commentedOct 12, 2018
Bug Report
What did you do?
Spin up prometheus (with config at the end). All the targets are down.
Ran the query
count(up{test=~".*tst.*"} == 1) by (test)What did you expect to see?
A series/sample with count (value) as 0.
What did you see instead? Under which circumstances?
No dataas output. This happens only when all theupseries are0.This comes as
nilin the code, hence any expression including that part becomesniland interferes with alerting too. For example an alerting rule withcount(up{test=~".*tst.*"} == 1) by (test) == 0would never fire.Prometheus version:
master @ 3e6b9d4 (post 2.4.3)
Prometheus configuration file: