aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <holger@moiji-mobile.com>2016-08-13 10:36:58 +0200
committerHolger Hans Peter Freyther <holger@moiji-mobile.com>2016-08-13 10:36:58 +0200
commit6e938eda1cb757a24eb38da91fa7d97892c7387e (patch)
treed310ea560ee0053ef12b5b7bdc8e49e8e124823b /src
parentf8ff41e0f9200f904cd346b06fe518f72c4ee113 (diff)
stats: Initialize the stats(d) backend in the client/server
Initialize the stats backend allowing key performance indicators to be pushed out of the system. Change-Id: Id652b60d230f705b927e49d81cd3731432156c7e
Diffstat (limited to 'src')
-rw-r--r--src/osmo_client_main.c4
-rw-r--r--src/osmo_server_main.c4
2 files changed, 8 insertions, 0 deletions
diff --git a/src/osmo_client_main.c b/src/osmo_client_main.c
index a38cc80..b509c84 100644
--- a/src/osmo_client_main.c
+++ b/src/osmo_client_main.c
@@ -26,10 +26,12 @@
#include <osmocom/core/application.h>
#include <osmocom/core/rate_ctr.h>
#include <osmocom/core/select.h>
+#include <osmocom/core/stats.h>
#include <osmocom/core/talloc.h>
#include <osmocom/vty/logging.h>
#include <osmocom/vty/telnet_interface.h>
+#include <osmocom/vty/stats.h>
#include <pcap.h>
#include <signal.h>
@@ -161,11 +163,13 @@ int main(int argc, char **argv)
vty_info.copyright = osmopcap_copyright;
vty_init(&vty_info);
logging_vty_add_cmds(&log_info);
+ osmo_stats_vty_add_cmds(&log_info);
/* parse options */
handle_options(argc, argv);
rate_ctr_init(tall_bsc_ctx);
+ osmo_stats_init(tall_bsc_ctx);
/* seed the PRNG */
srand(time(NULL));
diff --git a/src/osmo_server_main.c b/src/osmo_server_main.c
index 83efa21..f0ae80e 100644
--- a/src/osmo_server_main.c
+++ b/src/osmo_server_main.c
@@ -26,10 +26,12 @@
#include <osmocom/core/application.h>
#include <osmocom/core/rate_ctr.h>
#include <osmocom/core/select.h>
+#include <osmocom/core/stats.h>
#include <osmocom/core/talloc.h>
#include <osmocom/vty/logging.h>
#include <osmocom/vty/telnet_interface.h>
+#include <osmocom/vty/stats.h>
#include <pcap.h>
#include <signal.h>
@@ -164,11 +166,13 @@ int main(int argc, char **argv)
vty_info.copyright = osmopcap_copyright;
vty_init(&vty_info);
logging_vty_add_cmds(&log_info);
+ osmo_stats_vty_add_cmds(&log_info);
/* parse options */
handle_options(argc, argv);
rate_ctr_init(tall_bsc_ctx);
+ osmo_stats_init(tall_bsc_ctx);
/* seed the PRNG */
srand(time(NULL));