[alerting] investigate ability to handle some "NO DATA" conditions via a normal query #71503
Labels
estimate:needs-research
Estimated as too large and requires research to break down into workable issues
Feature:Alerting/RulesFramework
Issues related to the Alerting Rules Framework
Feature:Alerting
insight
Issues related to user insight into platform operations and resilience
Team:ResponseOps
Label for the ResponseOps team (formerly the Cases and Alerting teams)
A customer described a scenario they wanted to alert on with the index threshold. They wanted to do a grouped query, and then identify instances that have NOT reported any data.
I don't think that's possible without knowing all the possible instances ahead of time - eg, via an alert parameter (an array of instance ids to look for). My thinking is that we're doing aggregations on the group term, and "missing instances" won't show up in any bucket, since they aren't there.
In conversation, it was mentioned that using
min_doc_count: 0
could perhaps help with this, but I don't think it will given the previous paragraph. However, a non-grouped query using the count aggregation could use this to return0
instead of not returning anything.It's even possible it's doing this today, not real sure without doing a test on it. But seems like something worth investigating. Also not clear if we'd enable this as some kind of option, or just always arrange to return 0 for those. One of the problems with always returning 0 in that case is that it's different than the other aggregations which do not operate this way (and can't - they need actual values from the documents - count is only counting documents returned and doesn't need a value out of the index documents).
The text was updated successfully, but these errors were encountered: