libosmocore 1.11.0.26-c59d.202505072026
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) | |
char * | name |
Human-readable name of this reporter. | |
unsigned int | have_net_config: 1 |
int | enabled |
is this reporter enabled | |
char * | name_prefix |
prefix for counter names | |
char * | dest_addr_str |
destination IP address | |
char * | bind_addr_str |
local bind IP address | |
int | dest_port |
destination (UDP) port | |
int | mtu |
Maximum Transmission Unit. | |
unsigned int | flush_period |
period between regular flushes | |
enum osmo_stats_class | max_class |
Maximum class/index to report. | |
int | running |
is this reporter running | |
struct sockaddr | dest_addr |
destination address of socket | |
int | dest_addr_len |
length of dest_addr in bytes | |
struct sockaddr | bind_addr |
local bind address of socket | |
int | bind_addr_len |
length of bind_addr in bytes | |
int | fd |
file descriptor of socket | |
struct msgb * | buffer |
message buffer for log output | |
int | agg_enabled |
is aggregation enabled? | |
int | force_single_flush |
set to 1 to force a flush (send even unchanged stats values) | |
unsigned int | flush_period_counter |
count sends between forced flushes | |
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?
int osmo_stats_reporter::bind_addr_len |
length of bind_addr in bytes
char* osmo_stats_reporter::bind_addr_str |
local bind IP address
int(* osmo_stats_reporter::close) (struct osmo_stats_reporter *srep) |
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
int osmo_stats_reporter::fd |
file descriptor of socket
int osmo_stats_reporter::force_single_flush |
set to 1 to force a flush (send even unchanged stats values)
struct llist_head osmo_stats_reporter::list |
Referenced by flush_all_reporters(), osmo_stat_item_handler(), osmo_stats_reporter_find(), and rate_ctr_handler().
enum osmo_stats_class osmo_stats_reporter::max_class |
Maximum class/index to report.
FIXME: More details!
int osmo_stats_reporter::mtu |
Maximum Transmission Unit.
char* osmo_stats_reporter::name |
Human-readable name of this reporter.
char* osmo_stats_reporter::name_prefix |
prefix for counter names
int(* osmo_stats_reporter::open) (struct osmo_stats_reporter *srep) |
int osmo_stats_reporter::running |
is this reporter running
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(), osmo_stats_reporter_find(), and osmo_stats_reporter_log_send().