ejabberd
Bleemeo monitors ejabberd through automatic service detection and through Prometheus metrics via the mod_prometheus community module.
Auto-Detection
Section titled “Auto-Detection”Glouton automatically detects ejabberd instances running on the system.
If auto-detected parameters are incorrect, you can override them manually.
sudo tee /etc/glouton/conf.d/99-ejabberd.conf > /dev/null << 'EOF'service: - type: "ejabberd" address: "127.0.0.1" port: 5672EOFCreate or edit the file C:\ProgramData\glouton\conf.d\99-ejabberd.conf:
service: - type: "ejabberd" address: "127.0.0.1" port: 5672Glouton automatically detects configuration changes.
Prometheus Metrics
Section titled “Prometheus Metrics”Prometheus metrics are available through the mod_prometheus
community module. This module was previously bundled as mod_prom in ejabberd 21.07–23.x
but has since moved to the ejabberd-contrib repository.
Service Configuration
Section titled “Service Configuration”Install the module from ejabberd-contrib:
ejabberdctl module_install mod_prometheusThen enable it in your ejabberd configuration file (/etc/ejabberd/ejabberd.yml):
modules: mod_prometheus: {}Restart ejabberd to apply the change:
sudo systemctl restart ejabberdBy default, mod_prometheus exposes metrics on port 9090 at /metrics.
Verify the endpoint is working by visiting http://localhost:9090/metrics.
For more details, see the mod_prometheus documentation.
Glouton Configuration
Section titled “Glouton Configuration”sudo tee /etc/glouton/conf.d/99-ejabberd.conf > /dev/null << 'EOF'metric: prometheus: targets: - url: "http://localhost:9090/metrics" name: "ejabberd" allow_metrics: - "ejabberd_c2s_auth_total" - "ejabberd_s2s_connections" - "ejabberd_much_rooms" - "ejabberd_registered_users" - "ejabberd_online_users"EOFCreate or edit the file C:\ProgramData\glouton\conf.d\99-ejabberd.conf:
metric: prometheus: targets: - url: "http://localhost:9090/metrics" name: "ejabberd" allow_metrics: - "ejabberd_c2s_auth_total" - "ejabberd_s2s_connections" - "ejabberd_much_rooms" - "ejabberd_registered_users" - "ejabberd_online_users"Glouton automatically detects configuration changes.
| Metric | Description |
|---|---|
ejabberd_c2s_auth_total | Total number of client-to-server authentication attempts |
ejabberd_s2s_connections | Current number of server-to-server connections |
ejabberd_much_rooms | Number of active multi-user chat rooms |
ejabberd_registered_users | Total number of registered users |
ejabberd_online_users | Number of currently connected users |