Skip to content

Commit

Permalink
Update and improve mod_prometheus documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
badlop committed Jul 5, 2024
1 parent 7922af5 commit 3293bf1
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions mod_prometheus/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ Quick Start Guide
```sh
ejabberdctl module_install mod_prometheus
```
1. Check ejabberd provides metrics in the URL: `http://localhost:5289/metrics/`
1. Check ejabberd provides metrics in the URL: http://localhost:5289/metrics/

### Start Prometheus and Grafana

Expand All @@ -72,20 +72,23 @@ podman-compose up

### Test Prometheus

1. Open in web browser `http://localhost:9090/`
1. Open in web browser http://localhost:9090/

1. Enter example query: `erlang_mnesia_tablewise_size{table="muc_online_room"}`

### Setup Grafana

1. Open in web browser `http://localhost:3000/`
1. Open in web browser http://localhost:3000/

1. Login with username `admin` and password `admin`

1. Add data source: Prometheus
- Connection: `http://host.docker.internal:9090` (or `http://prometheus:9090`, or something similar)
1. Add your first data source:
- Add data source: `Prometheus`
- Connection URL: `http://localhost:9090`
- Click `Save & test`

1. Create your first dashboard
- Import dashboard
- Upload dashboard JSON file: you can try `ejabberd-dash.json`
- prometheus: select the data source you created previously
- Click `Import`

0 comments on commit 3293bf1

Please sign in to comment.