# AWX Job Template Monitoring

**URL:** <https://forum.ansible.com/t/awx-job-template-monitoring/4671>\
**Category:** Get Help\
**Tags:** awx\
**Created:** [April 2, 2024, 6:49am UTC](https://forum.ansible.com/t/awx-job-template-monitoring/4671 "2024-04-02T06:49:16Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![sajal\_tiwari](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/sajal_tiwari/32/2755_2.png) [@sajal\_tiwari](https://forum.ansible.com/u/sajal_tiwari)\
**Post date:** [April 2, 2024, 6:49am UTC](https://forum.ansible.com/t/awx-job-template-monitoring/4671/1 "2024-04-02T06:49:16Z")

</div>

Currently, I am monitoring the total jobs pending and total failed jobs in the AWX using Prometheus.  
Now I want to monitor a particular Job template or Workflow template in case any of their job fails.  
Is there any metric path that I can use to monitor it through Prometheus?  
I did found Job status metric path but it is not helping.

---

<div class="post-metadata">

**Author:** ![sajal\_tiwari](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/sajal_tiwari/32/2755_2.png) [@sajal\_tiwari](https://forum.ansible.com/u/sajal_tiwari)\
**Post date:** [April 5, 2024, 9:11am UTC](https://forum.ansible.com/t/awx-job-template-monitoring/4671/2 "2024-04-05T09:11:31Z")

</div>

Hello,  
Can you someone help?

---

<div class="post-metadata">

**Author:** ![fosterseth](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/fosterseth/32/101_2.png) [@fosterseth](https://forum.ansible.com/u/fosterseth)\
**Post date:** [April 5, 2024, 4:50pm UTC](https://forum.ansible.com/t/awx-job-template-monitoring/4671/3 "2024-04-05T16:50:23Z")

</div>

We don’t export data for particular jobs/workflows. You’d have to build out your own service (maybe a sidecar pod in k8s) that polls for failed jobs, then serve up whatever data you want for prometheus to scrape.

---

<div class="post-metadata">

**Author:** ![Denney-tech](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/denney-tech/32/1556_2.png) [@Denney-tech](https://forum.ansible.com/u/Denney-tech)\
**Post date:** [April 5, 2024, 4:55pm UTC](https://forum.ansible.com/t/awx-job-template-monitoring/4671/4 "2024-04-05T16:55:39Z")

</div>

To add to @fosterseth sidecar suggestion, you can query the API to find job results to any given job template:  
`https://awx.company.corp/api/v2/job_templates/<job_id>/jobs/`
