Trigger for more than one server

Hello everyone,

so i have a monitor that monitors a bunch of servers’ disk usage (for example) every 5mins, and i have a trigger that alerts me if the usage gets over a certain limit as so:

ctx.results[0].hits.hits[0]._source.system.filesystem.used.pct > 0.4

now whats happening is that if there are 2 servers that exceed the limit it would only alert me for one of them. Now my question is how can i make the trigger alert me for both severs and not just one.

Thank you for any help or guidance.

We are working on document level alerting, the RFC is in draft stage (PR) - Add RFC for Document-Level Alerting by qreshi · Pull Request #327 · opendistro-for-elasticsearch/alerting · GitHub