22 #include <sys/socket.h> 23 #include <osmocom/core/linuxlist.h> 33 enum osmo_stats_class {
34 OSMO_STATS_CLASS_UNKNOWN,
35 OSMO_STATS_CLASS_GLOBAL,
36 OSMO_STATS_CLASS_PEER,
37 OSMO_STATS_CLASS_SUBSCRIBER,
40 enum osmo_stats_reporter_type {
41 OSMO_STATS_REPORTER_STATSD,
42 OSMO_STATS_REPORTER_LOG,
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;
76 int64_t value, int64_t delta);
89 void osmo_stats_init(
void *ctx);
90 int osmo_stats_report();
92 int osmo_stats_set_interval(
int interval);
104 int osmo_stats_reporter_set_remote_addr(
struct osmo_stats_reporter *srep,
const char *addr);
106 int osmo_stats_reporter_set_local_addr(
struct osmo_stats_reporter *srep,
const char *addr);
109 enum osmo_stats_class class_id);
110 int osmo_stats_reporter_set_name_prefix(
struct osmo_stats_reporter *srep,
const char *prefix);
One instance of a counter group class.
Definition: rate_ctr.h:59
Osmocom message buffer.
Definition: msgb.h:42
Definition: linuxlist.h:42
One instance of a counter group class.
Definition: stat_item.h:57
statistics value description
Definition: stat_item.h:34
rate counter description
Definition: rate_ctr.h:39