How do you monitor AWX itself?
IntermediateProductionAWX, AAP and Cloud Integration
Answer
AWX exposes Prometheus metrics at /api/v2/metrics/. Scrape it with a token of a read-only account.
- job_name: awx
metrics_path: /api/v2/metrics/
scheme: https
bearer_token_file: /etc/prometheus/awx_token
static_configs:
- targets: [awx.example.com]
Alert on: pending jobs growing, failed jobs ratio for prod templates, instance capacity near zero, and instances or nodes reporting unhealthy. Also watch the PostgreSQL database (connections, disk) and the Kubernetes pods (restarts, OOMKilled task pods). Most AWX incidents we have seen were the database or the task pod running out of resources, not Ansible itself.
More on AWX, AAP and Cloud Integration
AWX or Red Hat Ansible Automation Platform: what is the difference and what do you pay for?BeginnerWhat are the core objects in AWX and how do they fit together?BeginnerHow do you manage AWX configuration as code?IntermediateHow do custom credential types work in AWX?AdvancedHow do you connect AWX to an external secrets manager?IntermediateHow do you trigger AWX jobs from CI or other systems?Intermediate