# Monitoring for AWX

**URL:** <https://forum.ansible.com/t/monitoring-for-awx/3719>\
**Category:** Project Discussions\
**Tags:** awx, collections, kubernetes\
**Created:** [February 7, 2024, 2:11am UTC](https://forum.ansible.com/t/monitoring-for-awx/3719 "2024-02-07T02:11:28Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Crimrose](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/crimrose/32/2239_2.png) [@Crimrose](https://forum.ansible.com/u/Crimrose)\
**Post date:** [February 7, 2024, 2:11am UTC](https://forum.ansible.com/t/monitoring-for-awx/3719/1 "2024-02-07T02:11:29Z")

</div>

Currently, I’m using AWX in K8s with grafana, prometheus. I started this topic to discuss about golden metrics of AWX, so that we we can easily to monitor the status of AWX.

First, you can watch this youtube video [https://www.youtube.com/watch?v=JiVE8gc8a7I&ab\_channel=AnsibleAWXCommunity](https://www.youtube.com/watch?v=JiVE8gc8a7I&ab_channel=AnsibleAWXCommunity). I learn a lot from it.

demo dashboard from awx repository [awx/tools/grafana/dashboards/demo\_dashboard.json at devel · ansible/awx · GitHub](https://github.com/ansible/awx/blob/devel/tools/grafana/dashboards/demo_dashboard.json)

---

<div class="post-metadata">

**Author:** ![Crimrose](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/crimrose/32/2239_2.png) [@Crimrose](https://forum.ansible.com/u/Crimrose)\
**Post date:** [February 7, 2024, 2:22am UTC](https://forum.ansible.com/t/monitoring-for-awx/3719/2 "2024-02-07T02:22:57Z")

</div>

Metric to watch: `awx_database_connections_total`  
Number of connections are connected to database

1. prom expr: `sum by (container) (awx_database_connections_total)`

`absent(awx_database_connections_total)`

 ![image](https://us1.discourse-cdn.com/ansible/original/2X/9/91cb0930f2b6dcb56092936ebff7711f57040063.jpeg)  
These exrs help us to detect if we are having any db connection issue. If absent return 1 it means your postgres is having problem.

1. expr: `callback_receiver_event_processing_avg_seconds`  
Expain: How much lag time between when event occurred in Ansible and when user could see it

2. expr: `avg(task_manager__schedule_seconds)`  
Average time task manager schedule jobs

3. expr: `probe_http_status_code{target=~"status-awx-.*"}`  
Monitor awx web UI return code. We can use [blackbox exporter](https://github.com/prometheus/blackbox_exporter) to expose this metrics

4. Monitor volume space usage  

5. expr: `awx_system_info`  
Version

 ![image](https://us1.discourse-cdn.com/ansible/original/2X/f/fa0b100da30d05f4a0a7e8359f7fa734a61b9100.png)

1. Monitor cpu, memory, network, io.
