Interview Prep/Ansible/AWX, AAP and Cloud Integration

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.

All Ansible questions Roadmap: Ansible

More on AWX, AAP and Cloud Integration