Back to Netdata

Asterisk collector

src/collectors/statsd.plugin/asterisk.md

2.10.33.0 KB
Original Source

Asterisk collector

Monitors Asterisk dialplan application's statistics.

Requirements

Configuration

Netdata ships with asterisk.conf with preconfigured charts.

To receive Asterisk metrics in Netdata, uncomment the following lines in the /etc/asterisk/statsd.conf file:

ini
[general]
enabled = yes                   ; When set to yes, statsd support is enabled
server = 127.0.0.1              ; server[:port] of statsd server to use.
                                ; If not specified, the port is 8125
prefix = asterisk               ; Prefix to prepend to all metrics

See statsd.conf.sample for all available options.

Charts and metrics

<details><summary>Click to see screenshots of the charts.</summary>

</details>

Mapping Asterisk StatsD metrics and Netdata charts.

ChartMetrics
Active Channelsasterisk.channels.count
Active Endpointsasterisk.endpoints.count
Active Endpoints by Statusasterisk.endpoints.state.*
Active SIP channels by endpointasterisk.endpoints.SIP.*.channels
Active PJSIP channels by endpointasterisk.endpoints.PJSIP.*.channels
Distribution of Dial Statusesasterisk.dialstatus.*
Asterisk Channels Call Durationasterisk.channels.calltime
Distribution of Hangup Causesasterisk.hangupcause.*
Distribution of Hangup Causes for ANSWERed callsasterisk.dialhangupcause.ANSWER.*
Distribution of Hangup Causes for BUSY callsasterisk.dialhangupcause.BUSY.*
Distribution of Hangup Causes for CANCELled callsasterisk.dialhangupcause.CANCEL.*
Distribution of Hangup Causes for CHANUNVAILed callsasterisk.dialhangupcause.CHANUNAVAIL.*
Distribution of Hangup Causes for CONGESTIONed callsasterisk.dialhangupcause.CONGESTION.*
Asterisk Dialplan Eventsasterisk.stasis.message.ast_channel_*_type
Asterisk PJSIP Peers Qualifyasterisk.PJSIP.contacts.*.rtt