Hi all.
Asterisk 18 finally include built in prometheus module!
So, if you upgrade your FreePBX to asterisk 18 by asterisk-version-switch
command you can enable it by following this steps.
Example basic config:
[general]
enabled=yes
core_metrics_enabled=yes
uri=metrics
- Add a config file at
/etc/asterisk/prometheus.conf
with the above config - Set asterisk owner and permissions:
fwconsole chown
- Restart asterisk by
fwconsole restart
or just load it manually with asterisk cli:module load res_prometheus.so
- Make sure the module is actually working by running:
curl localhost:8088/metrics
- Enjoy the power of Prometheus!