From 8ef81065b7a870d0ceac5c5fed249307fd99cb56 Mon Sep 17 00:00:00 2001 From: Christian Adams Date: Mon, 15 Apr 2019 13:39:55 -0400 Subject: [PATCH] add url to prom docs --- docs/prometheus.md | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/docs/prometheus.md b/docs/prometheus.md index a79c2719b3fb..a0aec0b7b8fb 100644 --- a/docs/prometheus.md +++ b/docs/prometheus.md @@ -1,4 +1,4 @@ -# Prometheus Support +# Prometheus Container ## Development AWX comes with an example prometheus container and make target. To use it: @@ -6,6 +6,14 @@ 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` +