Richard Fuchs
7a5069b194
MT#55283 simplify statistics_update_oneway a bit
...
Move some code around to eliminate some redundant code paths.
Change-Id: I419728376aafe2561b5a2224b2f635d505936ee3
3 years ago
Richard Fuchs
9a3ced05ff
MT#55283 fix nopacket_relayed_sess stats
...
This is a regression from the overhaul of the stats bookkeeping code.
Change-Id: I9b7c2084fb20407e5a2a24fdf802b8fd6831dc75
3 years ago
Richard Fuchs
e7abe3b378
TT#44805 rename `stats` to `stats_in`
...
Change-Id: Ifaf9a97b41d2cba76bf252772ed76242a7ca48d2
3 years ago
Richard Fuchs
0558cfbc05
TT#178400 collect and report RTP sequencing metrics
...
Change-Id: I037b1dff876eece1d3c8d4eda715587f294c1cd6
3 years ago
Richard Fuchs
778ec46b81
TT#178400 support reporting out measured jitter
...
Change-Id: I798ec9b05f48f3e12630aa71e16a6bf5746f5319
3 years ago
Richard Fuchs
9b4669d7e6
TT#178352 export additional VoIP metrics
...
Change-Id: Ib5886e4ccd3f746cd230a21a98cb8ec485bbc921
3 years ago
Richard Fuchs
6b5a8f5560
TT#178352 generalise metrics gathering and printing
...
Keep a running lifetime total of all "gauge" type metrics. Also track
the square of the sums of all "gauge" type metrics in order to determine
the standard deviation.
Change-Id: I23f60774a6421636f1a913674c7d1b54a1c5f702
3 years ago
Richard Fuchs
8b79a6074f
TT#156052 add call duration stddev metric
...
Change-Id: Idb8cf304323ba33e1cdbd4dbe343dc508041cc93
3 years ago
Richard Fuchs
7b5b52e932
TT#156052 add MOS stats to stats output
...
Change-Id: I9dd3847ae772ba0851239c3f230de72a2ed207ee
3 years ago
Richard Fuchs
970757da2b
TT#156052 add call duration metric to Prom
...
Change-Id: I734e9d4bf08f5b5559decb546ac150bc6bf981ac
3 years ago
Richard Fuchs
49b79e8b2f
TT#156052 use `destroyed` timestamp for call duration stats
...
Change-Id: I464269ffc85c7552e38abdbe326c8675b3175f19
3 years ago
Richard Fuchs
f613cf6fb2
TT#156052 rename total_calls_duration to _intv
...
These stats are per-Graphite-interval stats. The name should reflect
that.
Change-Id: I53844b8b1e61000873bc839f0ab713b7fc5ac1d6
3 years ago
Stefan Mititelu
7adf6ace92
Add 'seconds' to some stats duration
4 years ago
Richard Fuchs
ba14e05724
TT#14008 use correct accumulator for managed_sess and avg call duration
...
closes #1399
Change-Id: I9ef93a78bb6317f33cd90779d0069c5a7b328008
4 years ago
Sebastian Kemper
746dedb602
Add support for time64 libcs
...
libcs are implementing changes to fix the year 2038 issue on 32 bit
platforms (see [1]). musl libc already went ahead and implemented it,
starting with musl-1.2.0 (see [2]).
This commit adds a new definition to lib/loglib.h:
TIME_T_INT_FMT
If __USE_TIME_BITS64 is defined (by a time64 libc, see [1]), it's set to
the proper conversions for type int64_t, PRId64. If __USE_TIME_BITS64 is
not defined, the status quo remains unchanged ("%ld" is used).
The new definition is used in the different parts of rtpengine, where
appropriate.
Note: Richard confirmed that the "%u" format in daemon/cdr.c is not
needed, so this gets swept under the rug.
These changes get rid of the new warnings that appeared with musl-1.2.0.
Below an example warning:
In file included from ./log.h:6,
from ../include/obj.h:94,
from ../include/media_socket.h:9,
from ../include/call.h:26,
from ../include/redis.h:15,
from redis.c:1:
redis.c: In function 'redis_check_conn':
../lib/loglib.h:56:30: warning: format '%ld' expects argument of type 'long int', but argument 5 has type 'time_t' {aka 'long long int'} [-Wformat=]
56 | __ilog(prio, "[%s] " fmt, log_level_names[system], ##__VA_ARGS__); \
| ^~~~~~~
../lib/loglib.h:64:39: note: in expansion of macro 'ilogsn'
64 | #define ilogs(system, prio, fmt, ...) ilogsn(log_level_index_ ## system, prio, fmt, ##__VA_ARGS__)
| ^~~~~~
../lib/loglib.h:63:30: note: in expansion of macro 'ilogs'
63 | #define ilog(prio, fmt, ...) ilogs(core, prio, fmt, ##__VA_ARGS__)
| ^~~~~
redis.c:887:17: note: in expansion of macro 'ilog'
887 | ilog(LOG_WARNING, "Redis server %s is disabled. Don't try RE-Establishing for %ld more seconds",
| ^~~~
[1] https://sourceware.org/glibc/wiki/Y2038ProofnessDesign
[2] https://musl.libc.org/time64.html
Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
4 years ago
Richard Fuchs
0fa3a105af
TT#131402 add stats for user/kernel streams
...
Change-Id: I78800a3bbef9fdd92369c2ed14efd39c7799178f
4 years ago
Richard Fuchs
c5dc3484ae
TT#131402 split up relay stats between kernel and userspace
...
Change-Id: I9e5a82e5817829d8a1b17e6828bb0594fbc8df08
4 years ago
Richard Fuchs
06006df6fb
TT#101150 obsolete 'totalstats'
...
Change-Id: I744222b313f50fcf08d421309c329256f78869aa
4 years ago
Richard Fuchs
b0ebe9ba1b
TT#101150 move start timestamp to global var
...
Change-Id: I03efdbf02b5fbf16616d26010cb79b0932cd4e00
4 years ago
Richard Fuchs
2ae5cc79ba
TT#101150 obsolete more fields from struct totalstats
...
total_managed_sess, total_average_call_dur, total_average_lock,
managed_sess_max, managed_sess_min, managed_sess_lock
Change-Id: Ibe3f619ec6d2f21270fc81901dde55b5242b0daa
4 years ago
Richard Fuchs
3fa16c6ab1
TT#101150 generalise ng command stats into array/list
...
Change-Id: I43c7074237ae70d9bcb12b4946ce2c751d135bc8
4 years ago
Richard Fuchs
d4102280b2
TT#101150 obsolete struct request_time stats
...
Change-Id: Icf3e0648a0ba821bc66c6dd0e8f5ebc30576fb70
4 years ago
Richard Fuchs
b4295684a5
TT#101150 convert stats gauge handling to macros
...
Change-Id: I583bb1a09196d055710ee5e1d379541f23c54117
4 years ago
Richard Fuchs
7337f4a231
TT#101150 obsolete offers/answers/deletes_ps
...
Change-Id: I92e1a3617e2c47deeacc0186a930da0f6247f273
4 years ago
Richard Fuchs
facb4b54db
TT#101150 obsolete redundant fields in struct totalstats
...
Change-Id: I75d8bb1890ce35faac271550a1f9aff0f24ce624
4 years ago
Richard Fuchs
3608d9b070
TT#101150 obsolete total_relayed_* fields
...
Change-Id: I2340daba8f8088af81b3ed6b5dfc6f5fb8621a9a
4 years ago
Richard Fuchs
ad64f4fa00
TT#101150 introduce proper struct for "counter" style stats
...
Change-Id: Ifd06c54b25126426fe21723b8fb7a21d9bd03cba
4 years ago
Richard Fuchs
7dcc4473f5
TT#101150 split out "gauge" style stats
...
Change-Id: I52617a083bbbd41342b6413d8cacc5235cec51d9
4 years ago
Richard Fuchs
e04df3b961
TT#101150 use rtpe_now for uptime
...
Change-Id: Idd7e56058c9f27ca05b242bed52fe1f623bc9cbd
4 years ago
Stefan Mititelu
96c05d3fcf
Fix segfault when ps not found
4 years ago
Richard Fuchs
92fb330a46
TT#91151 implement one-to-many forwarding
...
Change-Id: I80fd35da680d4ad1f4d3d21f14f11363106b9917
4 years ago
Guillem Jover
07695d2abb
TT#111150 Use modern <stdint.h> uint<bits>_t types
...
The u_int<bits>_t are BSD legacy types, while the new ones are specified
by C99 and SUSv3.
Change-Id: Ia748cabc33a7e5adc2c7a6049ad1e55be0c788a8
4 years ago
Stefan Mititelu
482e2d0d2b
Add stats for ipv4/ipv6/mixed media calls
...
Also Send stats for ipv4/ipv6/mixed media calls to graphite
4 years ago
Richard Fuchs
5d895fb7be
TT#82405 add Prometheus stats exporter
...
Change-Id: Ic55b42a707e430a61c0422c65827ed2145511586
5 years ago
Richard Fuchs
18a3b9df0f
clean up codec stats on shutdown
...
Change-Id: Iac082cda84c62be4a340448ef7c97c2f94e2992f
5 years ago
Richard Fuchs
73cb248f8d
fix statistics format when multiple transcoders are present
...
closes #1042
Change-Id: I1dcd9c3053f35f97f0de8c23609a25347263044b
5 years ago
Richard Fuchs
832f73f3f5
TT#85750 add transcoder stats to stats output
...
closes #1036
Change-Id: I667f427b1214657585c434132b2e255e9f80e1f8
5 years ago
Richard Fuchs
11bcdf60f5
Merge branch 'master' of https://github.com/smititelu/rtpengine
...
Change-Id: Ib42cd413eea01b829922687a717f978813065a8a
5 years ago
Stefan Mititelu
8ba5d162dd
Fix Valgrind "still reachable" for a few others
...
log, ice, media_player, jitter_buffer,
statistics, codeclib, call_interfaces
5 years ago
Richard Fuchs
f6874afbef
fix another JSON comma missing
...
fixes #1024
Change-Id: I859ecaae309335a1d8025a9e3a2ec3ca942a62f5
5 years ago
Richard Fuchs
203f502006
TT#77806 add port stats to JSON/bencode output
...
Change-Id: Ieff8e9442b20e3ee1de570a7ef10cfb92f605064
5 years ago
Richard Fuchs
1095440616
TT#82410 fix missing comma for JSON list of objects
...
Change-Id: I70f022406ad88939534d4b42f291490f461ae8d5
5 years ago
Richard Fuchs
cdcf80c2c1
TT#82401 add statistics NG command
...
closes #992
Change-Id: I73284b8da6bc64c6e801f47cf6e00e52235b65ba
5 years ago
Richard Fuchs
6d2aeccda6
TT#82401 amend stats gather to keep track of braces
...
Change-Id: I042179fe26118aef34e84412c3790059b7f6e1a6
5 years ago
Richard Fuchs
1015cead8b
TT#82401 amend stats gathering to detect ints
...
Change-Id: I892144bbf549952858a1f3cf967673198a0457d4
5 years ago
Richard Fuchs
ac765d1b54
TT#82410 unify stats gathering functions
...
Change-Id: I5be2f728a40d69e76b7fcdd04b9d7cb62e34665e
5 years ago
Richard Fuchs
64e6bf440b
TT#82203 add detailed transcoding stats
...
Change-Id: Ib04767c38b00b17ef5844a9f6649e009270f8f82
5 years ago
Richard Fuchs
50394e8dd2
TT#37156 fix divide by zero error (regression from db58aa80
)
...
fixes #564
Change-Id: Ifdc58c814d6a0c82d95ca86ab2fd4eb3a85486ae
7 years ago
Richard Fuchs
db58aa80d0
fix graphite interval calculation for call durations
...
closes #543
Change-Id: I60f88cd874051c44df21b0b20401d1603ba5832e
7 years ago
Richard Fuchs
6fa712d0d8
implement offer-timeout option
...
closes #526
Change-Id: I819e1ad567c93f922461caf15482c2c55a0143d1
7 years ago