The AAP metrics utility tool is a standalone CLI utility called metrics-utility
which is intended to be installed to
the system containing instance of the Automation Controller.
It's an alternative command line tool for the Controller's CLI awx-manage
Install as a root user:
# Download to any folder
cd ~
git clone https://github.com/ansible/metrics-utility.git
# Activate Automation Controller's Python virtual environment
. /var/lib/awx/venv/awx/bin/activate
# Install the utility
cd metrics-utility
pip install .
# Successfully installed metrics-utility-0.0.1
which metrics-utility
# /var/lib/awx/venv/awx/bin/metrics-utility
# Move to /usr/bin (like awx-manage)
mv /var/lib/awx/venv/awx/bin/metrics-utility /usr/bin/
Outputs the Host Metrics available in the Controller.
metrics-utility host_metric [--since=2023-06-01]
# since - optional - Start Date in ISO format YYYY-MM-DD