mirror of
https://github.com/ansible/awx.git
synced 2024-11-01 16:51:11 +03:00
767 B
767 B
Prometheus Container
Development
AWX comes with an example Prometheus container and make
target. To use it:
-
Edit
tools/prometheus/prometheus.yml
and update thebasic_auth
section to specify a valid user/password for an AWX user you've created. Alternatively, you can provide an OAuth2 token (which can be generated at/api/v2/users/N/personal_tokens/
).Note: By default, the config assumes a user with username=admin and password=password.
-
Start the Prometheus container:
make prometheus
-
The Prometheus UI will now be accessible at
http://localhost:9090/graph
.
There should be no extra setup needed. You can try executing this query in the
UI to get back the number of active sessions: awx_sessions_total