# How to send ansible tower metrics to prometheus

**URL:** <https://forum.ansible.com/t/how-to-send-ansible-tower-metrics-to-prometheus/34716>\
**Category:** Ansible Project\
**Created:** [March 3, 2021, 7:52pm UTC](https://forum.ansible.com/t/how-to-send-ansible-tower-metrics-to-prometheus/34716 "2021-03-03T19:52:00Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Saravanan](https://avatars.discourse-cdn.com/v4/letter/s/eb8c5e/32.png) [@Saravanan](https://forum.ansible.com/u/Saravanan)\
**Post date:** [March 3, 2021, 7:52pm UTC](https://forum.ansible.com/t/how-to-send-ansible-tower-metrics-to-prometheus/34716/1 "2021-03-03T19:52:00Z")

</div>

Hi Ansible experts,  
We are trying to push Ansible metrics to Prometheus and create a Grafana dashboard.

Can you please provide a sample playbook/ note to hook up Ansible metrics to Prometheus?

---

<div class="post-metadata">

**Author:** ![Dick\_Visser](https://avatars.discourse-cdn.com/v4/letter/d/d9b06d/32.png) [@Dick\_Visser](https://forum.ansible.com/u/Dick_Visser)\
**Post date:** [March 3, 2021, 8:31pm UTC](https://forum.ansible.com/t/how-to-send-ansible-tower-metrics-to-prometheus/34716/2 "2021-03-03T20:31:31Z")

</div>

This list is for support on ansible. You might try the dedicated awx  
list instead.  
Or even better, for Tower contact Redhat support.

---

<div class="post-metadata">

**Author:** ![Ankit2](https://avatars.discourse-cdn.com/v4/letter/a/ea5d25/32.png) [@Ankit2](https://forum.ansible.com/u/Ankit2)\
**Post date:** [March 8, 2021, 6:37am UTC](https://forum.ansible.com/t/how-to-send-ansible-tower-metrics-to-prometheus/34716/3 "2021-03-08T06:37:29Z")

</div>

Hello,

Check this: [12. Metrics — Ansible Tower Administration Guide v3.8.1](https://docs.ansible.com/ansible-tower/latest/html/administration/metrics.html)

---

<div class="post-metadata">

**Author:** ![Saravanan](https://avatars.discourse-cdn.com/v4/letter/s/eb8c5e/32.png) [@Saravanan](https://forum.ansible.com/u/Saravanan)\
**Post date:** [March 21, 2021, 7:44pm UTC](https://forum.ansible.com/t/how-to-send-ansible-tower-metrics-to-prometheus/34716/4 "2021-03-21T19:44:07Z")

</div>

Hi Ankit,  
Thanks for sharing the details. Do you have a sample Ansible playbook to connect to the Prometheus?

---

<div class="post-metadata">

**Author:** ![Ankit2](https://avatars.discourse-cdn.com/v4/letter/a/ea5d25/32.png) [@Ankit2](https://forum.ansible.com/u/Ankit2)\
**Post date:** [March 22, 2021, 5:13am UTC](https://forum.ansible.com/t/how-to-send-ansible-tower-metrics-to-prometheus/34716/5 "2021-03-22T05:13:58Z")

</div>

Hello,

I don’t have a playook however, if you want to collect and send the metrics from tower/awx, you might have to write a script for that. Please also see if the external logging is helpful.

---

<div class="post-metadata">

**Author:** ![ffirg](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/ffirg/32/10029_2.png) [@ffirg](https://forum.ansible.com/u/ffirg)\
**Post date:** [March 22, 2021, 6:07pm UTC](https://forum.ansible.com/t/how-to-send-ansible-tower-metrics-to-prometheus/34716/6 "2021-03-22T18:07:37Z")

</div>

You don’t need a script this can all be done with Ansible - you should be able to replay the session I recorded for [https://events.redhat.com/profile/form/index.cfm?PKformID=0x183978abcd](https://events.redhat.com/profile/form/index.cfm?PKformID=0x183978abcd)  
" **Hello Ansible Tower! - How’s Your Health?"**

---

<div class="post-metadata">

**Author:** ![Ankit2](https://avatars.discourse-cdn.com/v4/letter/a/ea5d25/32.png) [@Ankit2](https://forum.ansible.com/u/Ankit2)\
**Post date:** [April 18, 2021, 7:44am UTC](https://forum.ansible.com/t/how-to-send-ansible-tower-metrics-to-prometheus/34716/7 "2021-04-18T07:44:14Z")

</div>

Hi Phil,

I am not able to access the video. Is there any other way to access the content?

I can only see the agenda but can’t access any videos in it.

Regs  
Ankit

---

<div class="post-metadata">

**Author:** ![ffirg](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/ffirg/32/10029_2.png) [@ffirg](https://forum.ansible.com/u/ffirg)\
**Post date:** [April 19, 2021, 10:00am UTC](https://forum.ansible.com/t/how-to-send-ansible-tower-metrics-to-prometheus/34716/8 "2021-04-19T10:00:19Z")

</div>

Hi Ankit

There should be a register option as well? If you use that you get access to the full back catalogue of recordings as well as mine.

Regards  
Phil.

---

<div class="post-metadata">

**Author:** ![Ankit2](https://avatars.discourse-cdn.com/v4/letter/a/ea5d25/32.png) [@Ankit2](https://forum.ansible.com/u/Ankit2)\
**Post date:** [April 19, 2021, 2:02pm UTC](https://forum.ansible.com/t/how-to-send-ansible-tower-metrics-to-prometheus/34716/9 "2021-04-19T14:02:52Z")

</div>

Thanks Phil, i will check it.
