Australia | Ansible Tower API

Sebastian Baszcyj - 07.04.202020200407

Ansible Tower API

Australia | Ansible Tower API

So, you have Ansible Tower installed in your environment and now you just need to find a way to make sure everything is working smoothly and as expected. The bonus is – you can use automation with the API.

Ansible Tower API Monitoring

Ansible Tower provides several mechanisms which can be used for monitoring of the standalone Ansible Tower and clustered Ansible Towers.

The following API call, provides information about the cluster health:

https://tower_fqdn/api/v2/ping/

The following example output can be expected when both instances (application nodes) are active. Notice the value assigned to variable ‘capacity’:

Australia | Ansible Tower API

In case one of the nodes is down, the capacity of the solution changes:

Australia | Ansible Tower API

Another useful API call is: https://ansible_fqdn/api/v2/metrics/

This call provides the information about system related metrics, including the available capacity of the nodes. For example:

Australia | Ansible Tower API

The following example provides additional information about the licensing status of the Ansible Tower; the number of licensed nodes vs used licenses; the license expiration time; licensed features etc:

https://tower_fqdn/api/v2/config/

Australia | Ansible Tower API

The following API call can be used to measure the performance and collect the data for performance plotting. It also provides insight into a job distribution and can help with the job allocation in busy environments.

Note the capacity, committed capacity, jobs_running and jobs_total. Values of those variables can provide insight into job slicing and job allocation. It can be also used to validate if another cluster node should be added to increase the capacity of the cluster:

https://tower_fqdn/api/v2/instance_groups/

Australia | Ansible Tower API

Note the API provides the metrics for each individual instance group. This implies  each individual instance group can be queried for specific information. This data can be used to plot graphs presenting utilisation of each instance group. For example:

https://tower_fqdn/api/v2/instance_groups/1/

Australia | Ansible Tower API

Ansible Tower offers even more API calls. Please refer to the following link, to verify available APIs:

https://tower_fqdn/api/v2/

For more information on Ansible Tower API, please refer to the following documentation:

https://docs.ansible.com/ansible-tower/latest/html/towerapi/index.html

THANK YOU FOR YOUR SUBMISSION!

Australia | Ansible Tower API

The form was submitted successfully.

Join the Insentra Community with the Insentragram Newsletter

Hungry for more?

If you’re waiting for a sign, this is it.

We’re a certified amazing place to work, with an incredible team and fascinating projects – and we’re ready for you to join us! Go through our simple application process. Once you’re done, we will be in touch shortly!

Who is Insentra?

Imagine a business which exists to help IT Partners & Vendors grow and thrive.

Insentra is a 100% channel business. This means we provide a range of Advisory, Professional and Managed IT services exclusively for and through our Partners.

Our #PartnerObsessed business model achieves powerful results for our Partners and their Clients with our crew’s deep expertise and specialised knowledge.

We love what we do and are driven by a relentless determination to deliver exceptional service excellence.

Australia | Ansible Tower API

Insentra ISO 27001:2013 Certification

SYDNEY, WEDNESDAY 20TH APRIL 2022 – We are proud to announce that Insentra has achieved the  ISO 27001 Certification.