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.confwith the above config
- Set asterisk owner and permissions:
- Restart asterisk by
fwconsole restartor just load it manually with asterisk cli:
module load res_prometheus.so
- Make sure the module is actually working by running:
- Enjoy the power of Prometheus!