aboutsummaryrefslogtreecommitdiffstats
path: root/include/osmocom/core
diff options
context:
space:
mode:
authorJacob Erlbeck <jerlbeck@sysmocom.de>2015-11-09 11:25:12 +0100
committerJacob Erlbeck <jerlbeck@sysmocom.de>2015-11-09 14:49:49 +0100
commitaed7c125fdfe743a78cb3fd8123af5257a900df9 (patch)
tree90bfc4c6ce6bb9796f7335de2f89f9e3937b1679 /include/osmocom/core
parent916423ef9585c7042730fdb17f55afc376565d32 (diff)
stats: Send all values on reporter update
Currently only counter changes and new item values are being reported. This makes it cumbersome to configure reporting clients, since there is nothing like a list of all parameters. This commit changes this behaviour such that all currently existing counters and items that would be reported eventually, are passed to the reporter when it has been reconfigured or enabled. If a counter has not been incremented, 0 is sent. If a stat item value has not been added, the last item value (or the default value if there is none) is resent again. Note that this will not catch transient counters/items that will be created later on, e.g. triggered by new peers or subscribers. To just force this kind of dump on a running reporter, it is sufficient to invoke the 'enable' command in its configuration node. Sponsored-by: On-Waves ehf
Diffstat (limited to 'include/osmocom/core')
-rw-r--r--include/osmocom/core/stats.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/osmocom/core/stats.h b/include/osmocom/core/stats.h
index 362d3fb3..39eae088 100644
--- a/include/osmocom/core/stats.h
+++ b/include/osmocom/core/stats.h
@@ -66,6 +66,7 @@ struct osmo_stats_reporter {
int fd;
struct msgb *buffer;
int agg_enabled;
+ int force_single_flush;
struct llist_head list;
int (*open)(struct osmo_stats_reporter *srep);