TT#101150 copy out per-interface counter stats

Change-Id: I44174b1975b1ccfe30e6e9050bed00d57c7b8157
pull/1373/head
Richard Fuchs 4 years ago
parent 7337f4a231
commit 8b5f0e997e

@ -65,6 +65,7 @@ struct xmlrpc_helper {
struct global_stats_gauge rtpe_stats_gauge;
struct global_stats_ax rtpe_stats;
struct global_stats_counter rtpe_stats_interval;
struct global_stats_counter rtpe_stats_cumulative;
struct global_stats_ax rtpe_stats_graphite;
struct global_stats_counter rtpe_stats_graphite_interval;
@ -547,7 +548,7 @@ void call_timer(void *ptr) {
call_timer_iterator(c, &hlp);
ITERATE_CALL_LIST_NEXT_END(c);
stats_counters_ax_calc_avg(&rtpe_stats, run_diff_us, NULL);
stats_counters_ax_calc_avg(&rtpe_stats, run_diff_us, &rtpe_stats_interval);
stats_counters_min_max(&rtpe_stats_graphite_min_max, &rtpe_stats.intv);

@ -543,6 +543,7 @@ extern struct call_iterator_list rtpe_call_iterators[NUM_CALL_ITERATORS];
extern struct global_stats_gauge rtpe_stats_gauge;
extern struct global_stats_ax rtpe_stats;
extern struct global_stats_counter rtpe_stats_interval; // accumulators copied out once per interval
extern struct global_stats_counter rtpe_stats_cumulative; // total, cumulative
extern struct global_stats_ax rtpe_stats_graphite;
extern struct global_stats_counter rtpe_stats_graphite_interval; // copied out when graphite stats run

Loading…
Cancel
Save