libosmocore 1.10.0.64-ff3d
Osmocom core library
|
One statistics reporter instance. More...
#include <stats.h>
Data Fields | |
enum osmo_stats_reporter_type | type |
Type of the reporter (log, statsd) More... | |
char * | name |
Human-readable name of this reporter. More... | |
unsigned int | have_net_config: 1 |
int | enabled |
is this reporter enabled More... | |
char * | name_prefix |
prefix for counter names More... | |
char * | dest_addr_str |
destination IP address More... | |
char * | bind_addr_str |
local bind IP address More... | |
int | dest_port |
destination (UDP) port More... | |
int | mtu |
Maximum Transmission Unit. More... | |
unsigned int | flush_period |
period between regular flushes More... | |
enum osmo_stats_class | max_class |
Maximum class/index to report. More... | |
int | running |
is this reporter running More... | |
struct sockaddr | dest_addr |
destination address of socket More... | |
int | dest_addr_len |
length of dest_addr in bytes More... | |
struct sockaddr | bind_addr |
local bind address of socket More... | |
int | bind_addr_len |
length of bind_addr in bytes More... | |
int | fd |
file descriptor of socket More... | |
struct msgb * | buffer |
message buffer for log output More... | |
int | agg_enabled |
is aggregation enabled? More... | |
int | force_single_flush |
set to 1 to force a flush (send even unchanged stats values) More... | |
unsigned int | flush_period_counter |
count sends between forced flushes More... | |
struct llist_head | list |
int(* | open )(struct osmo_stats_reporter *srep) |
int(* | close )(struct osmo_stats_reporter *srep) |
int(* | send_counter )(struct osmo_stats_reporter *srep, const struct rate_ctr_group *ctrg, const struct rate_ctr_desc *desc, int64_t value, int64_t delta) |
int(* | send_item )(struct osmo_stats_reporter *srep, const struct osmo_stat_item_group *statg, const struct osmo_stat_item_desc *desc, int64_t value) |
One statistics reporter instance.
int osmo_stats_reporter::agg_enabled |
is aggregation enabled?
Referenced by osmo_stats_reporter_statsd_send().
struct sockaddr osmo_stats_reporter::bind_addr |
local bind address of socket
int osmo_stats_reporter::bind_addr_len |
length of bind_addr in bytes
char* osmo_stats_reporter::bind_addr_str |
local bind IP address
struct msgb* osmo_stats_reporter::buffer |
message buffer for log output
Referenced by osmo_stats_reporter_statsd_send().
int(* osmo_stats_reporter::close) (struct osmo_stats_reporter *srep) |
Referenced by osmo_stats_reporter_create_statsd(), and update_srep_config().
struct sockaddr osmo_stats_reporter::dest_addr |
destination address of socket
int osmo_stats_reporter::dest_addr_len |
length of dest_addr in bytes
char* osmo_stats_reporter::dest_addr_str |
destination IP address
int osmo_stats_reporter::dest_port |
destination (UDP) port
int osmo_stats_reporter::enabled |
is this reporter enabled
Referenced by osmo_stats_reporter_disable(), osmo_stats_reporter_enable(), and update_srep_config().
int osmo_stats_reporter::fd |
file descriptor of socket
Referenced by osmo_stats_reporter_alloc().
unsigned int osmo_stats_reporter::flush_period |
period between regular flushes
Referenced by flush_all_reporters(), and osmo_stats_reporter_set_flush_period().
unsigned int osmo_stats_reporter::flush_period_counter |
count sends between forced flushes
Referenced by flush_all_reporters(), and osmo_stats_reporter_set_flush_period().
int osmo_stats_reporter::force_single_flush |
set to 1 to force a flush (send even unchanged stats values)
Referenced by flush_all_reporters(), handle_counter(), osmo_stat_item_handler(), osmo_stats_reporter_set_flush_period(), rate_ctr_handler(), and update_srep_config().
unsigned int osmo_stats_reporter::have_net_config |
Referenced by osmo_stats_reporter_create_log(), and osmo_stats_reporter_create_statsd().
struct llist_head osmo_stats_reporter::list |
Referenced by osmo_stats_reporter_alloc(), and osmo_stats_reporter_free().
enum osmo_stats_class osmo_stats_reporter::max_class |
Maximum class/index to report.
FIXME: More details!
Referenced by osmo_stats_reporter_check_config(), and osmo_stats_reporter_set_max_class().
int osmo_stats_reporter::mtu |
Maximum Transmission Unit.
char* osmo_stats_reporter::name |
Human-readable name of this reporter.
Referenced by osmo_stats_reporter_alloc(), and osmo_stats_reporter_find().
char* osmo_stats_reporter::name_prefix |
prefix for counter names
Referenced by osmo_stats_reporter_log_send(), osmo_stats_reporter_set_name_prefix(), and osmo_stats_reporter_statsd_send().
int(* osmo_stats_reporter::open) (struct osmo_stats_reporter *srep) |
Referenced by osmo_stats_reporter_create_statsd(), and update_srep_config().
int osmo_stats_reporter::running |
is this reporter running
Referenced by flush_all_reporters(), handle_counter(), osmo_stat_item_handler(), rate_ctr_handler(), and update_srep_config().
int(* osmo_stats_reporter::send_counter) (struct osmo_stats_reporter *srep, const struct rate_ctr_group *ctrg, const struct rate_ctr_desc *desc, int64_t value, int64_t delta) |
int(* osmo_stats_reporter::send_item) (struct osmo_stats_reporter *srep, const struct osmo_stat_item_group *statg, const struct osmo_stat_item_desc *desc, int64_t value) |
enum osmo_stats_reporter_type osmo_stats_reporter::type |
Type of the reporter (log, statsd)
Referenced by osmo_stats_reporter_alloc(), and osmo_stats_reporter_find().