Richard Fuchs
d6ca0a99b3
MT#55283 simplify/clarify min/max stats gathering
Rename structs and variables to make it clear that these min/max values
are min/max per-sec rate values.
Carry mins and maxes separately from averages. This changes the meaning
of $command_ps_avg away from an "average of averages" to an actual
average, which is more accurate.
Calculate this average based on per-interval differences and interval
duration (stats_rate_min_max_avg_sample).
Side effect: As rtpe_latest_graphite_interval_start is now set in
print_graphite_data instead of in graphite_loop_run, the test now
reports a different "interval calls duration".
Change-Id: I67b1118c18ca2464a48c4836fca3cfdb4d53c898
3 years ago
Richard Fuchs
6c1fbc5706
MT#55283 move stats variables into sensible units
Change-Id: I40e6223adc6be5cc770ae3f27dea9aeb85b5f66c
3 years ago
Richard Fuchs
dddaa60afb
MT#55283 simplify/clarify stats gathering
Perform accumulation of stats only once (i.e. increasing an actual
counter) and report stats based on differences to previous values,
instead of carrying multiple stats counters for each metric and
resetting each counter to zero whenever stats are reported.
`rtpe_stats` is the global master accumulator.
`_intv` variables are intermediate and local storage for values sampled
from `rtpe_stats` at regular intervals.
`_rate` and `_diff` variables hold stats calculated from `rtpe_stats`
and the respective `_intv` variable whenever the sampling and reporting
occurs.
`stats_counters_calc_diff` is used to calculate stats as differences
between `rtpe_stats` and the last sampled `_intv`
`stats_counters_calc_rate` does the same but calculates a per-second
rate, based on a microsecond duration.
Eliminate now-useless struct global_stats_ax
Change-Id: Ic4ca630161787025219b67e49b41995204d60573
3 years ago
hdikme
85ec0faf9e
TT#14008 send NG command stats count to Graphite
closes #1429
Change-Id: Iefd9fcfc7ac86ee04024be03aff86cfafd5b3fc5
4 years ago
Stefan Mititelu
528e108a1e
Add new graphite-timeout parameter
Needed to be able to set graphite socket timeout.
Useful when one wants rtpengine to force the graphite connection
to fail faster, in case graphite server gets filtered while
connection is ongoing.
4 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
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
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
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
d197a27b40
TT#101150 add graphite-specific global_stats_ax
Change-Id: I01ad26b1c6029d02c0a41216ba238c1f2c3a2f2d
4 years ago
Richard Fuchs
7dcc4473f5
TT#101150 split out "gauge" style stats
Change-Id: I52617a083bbbd41342b6413d8cacc5235cec51d9
4 years ago
Richard Fuchs
30d91ecc63
TT#101150 add test script for stats output
Change-Id: I13cc172b082e78c3d52032bd72e0a2f5158c71ed
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
5 years ago
Richard Fuchs
e1dda97028
TT#14008 fix some warnings from musl
Change-Id: I99fe1185cf814232b44c078b62199e850850cb0d
5 years ago
Stefan Mititelu
eb8169868d
Fix a few more "still reachable". End all redis unused threads.
6 years ago
Richard Fuchs
64e6bf440b
TT#82203 add detailed transcoding stats
Change-Id: Ib04767c38b00b17ef5844a9f6649e009270f8f82
6 years ago
Richard Fuchs
5f3f203fb8
TT#82203 add stats for transcoded sessions
Change-Id: Ie9bef31f62d489fccf52b02a8935f9c9dc2575b5
6 years ago
Richard Fuchs
5744c04d0d
TT#76368 add port status to graphite output
Change-Id: I7a12d55fd2e31222964361b301c6507b4e7760a5
6 years ago
Richard Fuchs
dcce2ba1a1
TT#76368 move graphite timestamping into wrapper macro
Change-Id: Iee58d38b8746b866944535160e131021a047a920
6 years ago
Richard Fuchs
ceb6814332
TT#76368 handle connection blocking on graphite writes
Change-Id: I261bb890fa7f403061f92c1300b69a3833282f09
6 years ago
Richard Fuchs
10ab85b3e5
TT#76368 remove some graphite functions from global namespace
Change-Id: Ic24778e9d04e015012e9d7cc873203d0dfbacaa6
6 years ago
Richard Fuchs
335e3d2416
TT#76368 clean up graphite writing functions
Change-Id: I8efebe57417a9d060c4d3dd402d014df5f0feda4
6 years ago
Richard Fuchs
6fa712d0d8
implement offer-timeout option
closes #526
Change-Id: I819e1ad567c93f922461caf15482c2c55a0143d1
8 years ago
Claudiu Boriga
74cecc09a6
Use statistics locks properly
8 years ago
Claudiu Boriga
8cc4b7874e
Add statistics for requests per second
8 years ago
Richard Fuchs
75056a8dd1
eliminate the callmaster struct
Change-Id: I9151dbe8f47b3bb9ab67d6fea2fc3783bdc558da
8 years ago
Richard Fuchs
f2b93f9ef8
move config options into global struct rtpengine_config
Change-Id: Ie566efb6a1b8bedbe33f768bc4cd979b2d2b46cc
8 years ago
Richard Fuchs
d65a6bbbdc
move latest_graphite_interval_start to global scope
Change-Id: I1eb5ea8d6faafe40383d3bb92517307e47ceca9a
8 years ago
Richard Fuchs
741140341f
move "totalstats" out of callmaster into global scope
Change-Id: Ia5b95e788c1d486a86b6f916dcff5b88022f5897
8 years ago
Richard Fuchs
c969ea1e57
move stats and statsps into global scope
Change-Id: I02d16e31f8980bd0ef3ff3a190b23dc61c087018
8 years ago
Richard Fuchs
dffbddb2d6
don't use g_ prefix for global variables
Change-Id: Ifd843b01d7fccf294f97fdf48308c71268e1b8ae
8 years ago
Richard Fuchs
399e15b39a
make the callhash global
Change-Id: Ifa1fbb5d1b1f623dbc6a1bfac556342735b40161
8 years ago
Claudiu Boriga
9f2286d7bb
fix bug that makes rtpengine crash when graphite server is down
replaced select with poll because when a large number of file
descriptors are open segfaults might happen
9 years ago
Richard Fuchs
e85759a3b8
fix some errors caught by coverity
Change-Id: I3f5bfc2df00ab9b031eef5a1c71b6ff3ba25e60c
9 years ago
Lucian Balaceanu
5732121794
Beautifying previous code
10 years ago
Lucian Balaceanu
e7f63dcf2a
Report own/foreign/total sessions to Graphite
10 years ago
Richard Fuchs
133e6304b3
MT#18599 support sending RTCP stats to Homer via HEP
Change-Id: Icaf28f28c910318726e446a1a2ad4c7ee5e79f85
10 years ago
Stefan Mititelu
57aa56616d
Add offer/answer/delete processing statistics
Add graphite offer/answer/delete min/max/avg statistics.
Print new graphite statistics in rtpengine-cli list totals.
10 years ago
Stefan Mititelu
9be68a0c2f
Add FINAL_TIMEOUT parameter
The timer that will limit the duration of a call.
Add graphite statistics for calls ended this way.
10 years ago
smititelu
b38f3da45c
Redis nofitications fixes
- add --subscribe_keyspace list config parameter.
- don't delete foreign calls by timers
- fix synchronization of foreign calls (use a separate redis_notify database)
- fix statistics for control channel calls.
- fix deletion of foreign calls upon del notifications
- update rtpengine-ctl tool
10 years ago
Frederic-Philippe Metz
e376335595
Removed graphite hostname and 'totals' in graphite names
10 years ago
Frederic-Philippe Metz
8b65c18b3d
Removed also the '.' of the graphite prefix
10 years ago
Frederic-Philippe Metz
354307e609
Removed graphite hostname and 'totals' in graphite names
10 years ago
smititelu
0395a24f73
Change the graphite connection state logic
Add state of the graphite server
10 years ago
smititelu
6378a1e177
Graphite change global to local parameters
Do sanity checks.
10 years ago