Monitor Agent-Status

Hi Community
We would like to monitor the agent-status (status = unhealthy) of an elastic agent but only with a specific integration policy included.
what would be the best way to create such a monitor in Kibana?

Thanks for reaching out, @MGBSLC. Have you considered creating a query to check for documents in .fleet-agents where status = unhealthy that also matches a specific integration policy and creating a rules-based alert in Kibana?

Here are some resources that could be helpful here: