# Monitor Agent-Status

**URL:** <https://discuss.elastic.co/t/monitor-agent-status/374059>\
**Category:** Elastic Agent\
**Created:** [February 4, 2025, 10:22am UTC](https://discuss.elastic.co/t/monitor-agent-status/374059 "2025-02-04T10:22:19Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![MGBSLC](https://avatars.discourse-cdn.com/v4/letter/m/e47c2d/32.png) [@MGBSLC](https://discuss.elastic.co/u/MGBSLC)\
**Post date:** [February 4, 2025, 10:22am UTC](https://discuss.elastic.co/t/monitor-agent-status/374059/1 "2025-02-04T10:22:20Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![jessgarson](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jessgarson/32/129841_2.png) [@jessgarson](https://discuss.elastic.co/u/jessgarson)\
**Post date:** [February 10, 2025, 7:34pm UTC](https://discuss.elastic.co/t/monitor-agent-status/374059/2 "2025-02-10T19:34:22Z")

</div>

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:

- [Monitor Elastic Agents | Fleet and Elastic Agent Guide [8.17] | Elastic](https://www.elastic.co/guide/en/fleet/current/monitor-elastic-agent.html)
- [Elastic Agent health status | Fleet and Elastic Agent Guide [8.17] | Elastic](https://www.elastic.co/guide/en/fleet/current/agent-health-status.html)
- [Alerting | Kibana Guide [8.17] | Elastic](https://www.elastic.co/guide/en/kibana/current/alerting-getting-started.html)
