1
0
mirror of https://github.com/ansible/awx.git synced 2024-10-30 13:55:31 +03:00
awx/docs/prometheus.md

19 lines
767 B
Markdown
Raw Normal View History

2019-04-15 20:39:55 +03:00
# Prometheus Container
## Development
2019-09-17 22:49:01 +03:00
AWX comes with an example Prometheus container and `make` target. To use it:
1. Edit `tools/prometheus/prometheus.yml` and update the `basic_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
2019-04-15 20:39:55 +03:00
`/api/v2/users/N/personal_tokens/`).
2019-09-17 22:49:01 +03:00
2019-04-15 20:39:55 +03:00
> Note: By default, the config assumes a user with username=admin and password=password.
2019-09-17 22:49:01 +03:00
2. Start the Prometheus container:
`make prometheus`
2019-04-15 20:39:55 +03:00
3. The Prometheus UI will now be accessible at `http://localhost:9090/graph`.
2019-09-17 22:49:01 +03:00
There should be no extra setup needed. You can try executing this query in the
2019-04-15 20:39:55 +03:00
UI to get back the number of active sessions: `awx_sessions_total`