22#include <sys/socket.h>
33enum osmo_stats_class {
34 OSMO_STATS_CLASS_UNKNOWN,
35 OSMO_STATS_CLASS_GLOBAL,
36 OSMO_STATS_CLASS_PEER,
37 OSMO_STATS_CLASS_SUBSCRIBER,
40enum osmo_stats_reporter_type {
41 OSMO_STATS_REPORTER_LOG,
42 OSMO_STATS_REPORTER_STATSD,
46 enum osmo_stats_reporter_type type;
49 unsigned int have_net_config : 1;
58 enum osmo_stats_class max_class;
62 struct sockaddr dest_addr;
64 struct sockaddr bind_addr;
69 int force_single_flush;
77 int64_t value, int64_t delta);
90void osmo_stats_init(
void *ctx);
91int osmo_stats_report();
93int osmo_stats_set_interval(
int interval);
102int osmo_stats_reporter_set_remote_addr(
struct osmo_stats_reporter *srep,
const char *addr);
107 enum osmo_stats_class class_id);
108int osmo_stats_reporter_set_name_prefix(
struct osmo_stats_reporter *srep,
const char *prefix);
Simple doubly linked list implementation.
(double) linked list header structure
Definition linuxlist.h:47
Osmocom message buffer.
Definition msgb.h:43
statistics value description
Definition stat_item.h:35
One instance of a counter group class.
Definition stat_item.h:58
rate counter description
Definition rate_ctr.h:39
One instance of a counter group class.
Definition rate_ctr.h:59