-
- Downloads
res_prometheus: Add Asterisk channel metrics
This patch adds basic Asterisk channel statistics to the res_prometheus module. This includes: * asterisk_calls_sum: A running sum of the total number of processed calls * asterisk_calls_count: The current number of calls * asterisk_channels_count: The current number of channels * asterisk_channels_state: The state of any particular channel * asterisk_channels_duration_seconds: How long a channel has existed, in seconds In all cases, enough information is provided with each channel metric to determine a unique instance of Asterisk that provided the data, as well as the name, type, unique ID, and - if present - linked ID of each channel. ASTERISK-28403 Change-Id: I0db306ec94205d4f58d1e7fbabfe04b185869f59
Showing
- configs/samples/prometheus.conf.sample 3 additions, 6 deletionsconfigs/samples/prometheus.conf.sample
- include/asterisk/res_prometheus.h 37 additions, 0 deletionsinclude/asterisk/res_prometheus.h
- res/Makefile 1 addition, 0 deletionsres/Makefile
- res/prometheus/channels.c 236 additions, 0 deletionsres/prometheus/channels.c
- res/prometheus/prometheus_internal.h 41 additions, 0 deletionsres/prometheus/prometheus_internal.h
- res/res_prometheus.c 49 additions, 1 deletionres/res_prometheus.c
- tests/test_res_prometheus.c 4 additions, 4 deletionstests/test_res_prometheus.c
Loading
Please register or sign in to comment