# AWX dashboard job graph into Grafana

**URL:** <https://forum.ansible.com/t/awx-dashboard-job-graph-into-grafana/6777>\
**Category:** Get Help\
**Tags:** awx\
**Created:** [June 26, 2024, 6:10am UTC](https://forum.ansible.com/t/awx-dashboard-job-graph-into-grafana/6777 "2024-06-26T06:10:08Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![amvj](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/amvj/32/383_2.png) [@amvj](https://forum.ansible.com/u/amvj)\
**Post date:** [June 26, 2024, 6:10am UTC](https://forum.ansible.com/t/awx-dashboard-job-graph-into-grafana/6777/1 "2024-06-26T06:10:08Z")

</div>

I am trying to display the AWX dashboard job status graph in Grafana. We are sending the AWX metrics to Prometheus. So we are trying to display with the Prometheus data. While I try to add query in the Grafana, the data is not exactly co-relates with what I see in Grafana. To give you an example, The total successful jobs for a day range between 1200 to 2500 but in the Grafana it showing upto 200000.

Please let me know if I need to make changes in the below query:

**Grafana (Prometheus) query:**  
**Job Successful:**  
sum(awx\_status\_total{status=“successful”}) - sum(awx\_status\_total{status=“successful”} offset 24h)

**Job failures:**  
increase(awx\_status\_total{status=~“failed|successful”}[24h])

**Screenshot of AWX and Grafana:**

 ![AWX Grafana combined](https://us1.discourse-cdn.com/ansible/original/2X/e/e15eddee74317a05462047ab1b1bdc54f2baf828.png)

---

<div class="post-metadata">

**Author:** ![amvj](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/amvj/32/383_2.png) [@amvj](https://forum.ansible.com/u/amvj)\
**Post date:** [July 22, 2024, 5:47am UTC](https://forum.ansible.com/t/awx-dashboard-job-graph-into-grafana/6777/2 "2024-07-22T05:47:35Z")

</div>

Any suggestions guys ?

---

<div class="post-metadata">

**Author:** ![amvj](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/amvj/32/383_2.png) [@amvj](https://forum.ansible.com/u/amvj)\
**Post date:** [September 17, 2024, 6:39am UTC](https://forum.ansible.com/t/awx-dashboard-job-graph-into-grafana/6777/3 "2024-09-17T06:39:23Z")

</div>

Any one came across this issue ?

We find the data in the **AwxURL/api/v2/metrics** does not co-relate with AWX dashboard especially the successful and failed jobs.

These are some of the fields showing wrong data in v2/metrics:  
awx\_status\_total{status=“failed”}  
awx\_status\_total{status=“successful”}  
awx\_status\_total{status=“canceled”}  
awx\_status\_total{status=“error”}
