From bc4f7ae512b32fa4b569dfc5242d0b7a5da3f81b Mon Sep 17 00:00:00 2001 From: Jacob Erlbeck Date: Wed, 28 Oct 2015 21:47:45 +0100 Subject: stats: Add log reporter This reporter passes the measurement values to the logging subsystem as DSTATS (which is currently DLGLOBAL) level INFO messages. Sponsored-by: On-Waves ehf --- include/osmocom/core/stats.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'include') diff --git a/include/osmocom/core/stats.h b/include/osmocom/core/stats.h index beeee16e..68c2e016 100644 --- a/include/osmocom/core/stats.h +++ b/include/osmocom/core/stats.h @@ -30,6 +30,7 @@ struct rate_ctr_desc; enum stats_reporter_type { STATS_REPORTER_STATSD, + STATS_REPORTER_LOG, }; struct stats_reporter { @@ -83,7 +84,9 @@ int stats_set_interval(int interval); struct stats_reporter *stats_reporter_alloc(enum stats_reporter_type type, const char *name); void stats_reporter_free(struct stats_reporter *srep); + struct stats_reporter *stats_reporter_create_statsd(const char *name); +struct stats_reporter *stats_reporter_create_log(const char *name); struct stats_reporter *stats_reporter_find(enum stats_reporter_type type, const char *name); -- cgit v1.2.3