forked from ansible/awx
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
707c388
commit 8ef8106
Showing
1 changed file
with
10 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,19 @@ | ||
# Prometheus Support | ||
# Prometheus Container | ||
|
||
## Development | ||
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 | ||
`/api/v2/users/N/personal_tokens/`). | ||
`/api/v2/users/N/personal_tokens/`). | ||
|
||
> Note: By default, the config assumes a user with username=admin and password=password. | ||
2. Start the Prometheus container: | ||
`make prometheus` | ||
3. 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` | ||
|