asterisk.conf 5.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208
  1. [app]
  2. name = asterisk
  3. metrics = asterisk.*
  4. private charts = yes
  5. gaps when not collected = no
  6. [dictionary]
  7. # https://www.voip-info.org/asterisk-variable-hangupcause/
  8. q931.1 = unallocated 1
  9. q931.2 = no route transit net 2
  10. q931.3 = no route destination 3
  11. q931.6 = channel unacceptable 6
  12. q931.7 = call awarded delivered 7
  13. q931.16 = normal 16
  14. q931.17 = busy 17
  15. q931.18 = no response 18
  16. q931.19 = no answer 19
  17. q931.21 = rejected call 21
  18. q931.22 = number changed 22
  19. q931.27 = dst out of order 27
  20. q931.28 = invalid number 28
  21. q931.29 = rejected facility 29
  22. q931.30 = response to status 30
  23. q931.31 = normal unspecified 31
  24. q931.34 = congestion circuit 34
  25. q931.38 = net out of order 38
  26. q931.41 = normal tmp fail 41
  27. q931.42 = congestion switch 42
  28. q931.43 = access info discarded 43
  29. q931.44 = requested chan unavail 44
  30. q931.45 = pre empted 45
  31. q931.47 = resource unavailable, unspecified 47
  32. q931.50 = facility not subscribed 50
  33. q931.52 = outgoing call barred 52
  34. q931.54 = incoming call barred 54
  35. q931.57 = bearer capability not auth 57
  36. q931.58 = bearer capability not avail 58
  37. q931.65 = bearer capability not implemented 65
  38. q931.66 = chan not implemented 66
  39. q931.69 = facility not implemented 67
  40. q931.81 = invalid call reference 81
  41. q931.88 = incompatible destination 88
  42. q931.95 = invalid msg specified 95
  43. q931.96 = mandatory ie missing 96
  44. q931.97 = message type non exist 97
  45. q931.98 = wrong message 98
  46. q931.99 = ie non exist 99
  47. q931.100 = invalid ie contents 100
  48. q931.101 = wrong call state 101
  49. q931.102 = recovery on timer expire 102
  50. q931.103 = mandatory ie length error 103
  51. q931.111 = protocol error 111
  52. q931.127 = interworking 127
  53. [channels]
  54. name = channels
  55. title = Active Channels
  56. family = channels
  57. context = asterisk.channels
  58. units = channels
  59. priority = 91000
  60. type = stacked
  61. dimension = pattern asterisk.channels.count 'channels' last 1 1
  62. # FIXME: netdata needs to prevent this from going negative
  63. [endpoints]
  64. name = endpoints
  65. title = Active Endpoints
  66. family = endpoints
  67. context = asterisk.endpoints
  68. units = endpoints
  69. priority = 91005
  70. type = stacked
  71. dimension = pattern asterisk.endpoints.count 'endpoints' last 1 1
  72. [endpoints_by_status]
  73. name = endpoints_by_status
  74. title = Active Endpoints by Status
  75. family = endpoints
  76. context = asterisk.endpoints_by_status
  77. units = endpoints
  78. priority = 91006
  79. type = stacked
  80. dimension = pattern asterisk.endpoints.state.* '' last 1 1
  81. [sip_channels_by_endpoint]
  82. name = sip_channels_by_endpoint
  83. title = Active SIP channels by endpoint
  84. family = channels
  85. context = asterisk.sip_channels_by_endpoint
  86. units = channels
  87. priority = 91110
  88. type = stacked
  89. dimension = pattern asterisk.endpoints.SIP.*.channels '' last 1 1
  90. [pjsip_channels_by_endpoint]
  91. name = pjsip_channels_by_endpoint
  92. title = Active PJSIP channels by endpoint
  93. family = channels
  94. context = asterisk.pjsip_channels_by_endpoint
  95. units = channels
  96. priority = 91111
  97. type = stacked
  98. dimension = pattern asterisk.endpoints.PJSIP.*.channels '' last 1 1
  99. [dialstatuses]
  100. name = dialstatuses
  101. title = Distribution of Dial Statuses
  102. family = dial_statuses
  103. context = asterisk.dialstatus
  104. units = calls
  105. priority = 91150
  106. type = stacked
  107. dimension = pattern 'asterisk.dialstatus.*' '' last 1 1
  108. [calltime]
  109. name = calltime
  110. title = Asterisk Channels Call Duration
  111. family = calltime
  112. context = asterisk.calltime
  113. units = milliseconds
  114. priority = 91160
  115. type = stacked
  116. dimension = asterisk.channels.calltime 'calltime' average 1 1
  117. dimension = asterisk.channels.calltime 'sum' sum 1 1 hidden
  118. dimension = asterisk.channels.calltime 'count' events 1 1 hidden
  119. [hangupcause]
  120. name = hangupcause
  121. title = Distribution of Hangup Causes
  122. family = hangup_causes
  123. context = asterisk.hangupcause
  124. units = calls
  125. priority = 91200
  126. type = stacked
  127. dimension = pattern 'asterisk.hangupcause.*' 'q931.' last 1 1
  128. [hangupcause_answer]
  129. name = hangupcause_answer
  130. title = Distribution of Hangup Causes for ANSWERed calls
  131. family = hangup_causes
  132. context = asterisk.hangupcause_answer
  133. units = calls
  134. priority = 91210
  135. type = stacked
  136. dimension = pattern 'asterisk.dialhangupcause.ANSWER.*' 'q931.' last 1 1
  137. [hangupcause_busy]
  138. name = hangupcause_busy
  139. title = Distribution of Hangup Causes for BUSY calls
  140. family = hangup_causes
  141. context = asterisk.hangupcause_busy
  142. units = calls
  143. priority = 91215
  144. type = stacked
  145. dimension = pattern 'asterisk.dialhangupcause.BUSY.*' 'q931.' last 1 1
  146. [hangupcause_cancel]
  147. name = hangupcause_cancel
  148. title = Distribution of Hangup Causes for CANCELled calls
  149. family = hangup_causes
  150. context = asterisk.hangupcause_cancel
  151. units = calls
  152. priority = 91220
  153. type = stacked
  154. dimension = pattern 'asterisk.dialhangupcause.CANCEL.*' 'q931.' last 1 1
  155. [hangupcause_chanunavail]
  156. name = hangupcause_chanunavail
  157. title = Distribution of Hangup Causes for CHANUNVAILed calls
  158. family = hangup_causes
  159. context = asterisk.hangupcause_chanunavail
  160. units = calls
  161. priority = 91230
  162. type = stacked
  163. dimension = pattern 'asterisk.dialhangupcause.CHANUNAVAIL.*' 'q931.' last 1 1
  164. [hangupcause_congestion]
  165. name = hangupcause_congestion
  166. title = Distribution of Hangup Causes for CONGESTIONed calls
  167. family = hangup_causes
  168. context = asterisk.hangupcause_congestion
  169. units = calls
  170. priority = 91240
  171. type = stacked
  172. dimension = pattern 'asterisk.dialhangupcause.CONGESTION.*' 'q931.' last 1 1
  173. [events]
  174. name = events
  175. title = Asterisk Dialplan Events
  176. family = events
  177. context = asterisk.events
  178. units = events/s
  179. priority = 91400
  180. type = stacked
  181. dimension = pattern 'asterisk.stasis.message.ast_channel_*_type' '' last 1 1
  182. [qualify]
  183. name = qualify
  184. title = Asterisk PJSIP Peers Qualify
  185. family = qualify
  186. context = asterisk.qualify
  187. units = milliseconds
  188. priority = 91500
  189. type = stacked
  190. dimension = pattern 'asterisk.PJSIP.contacts.*.rtt' '' max 1 1
  191. # FIXME: netdata needs to set update every = 15 on this