Max has uploaded this change for review. ( https://gerrit.osmocom.org/12931


Change subject: Enable statsd support
......................................................................

Enable statsd support

Change-Id: I9112d9fd527cdc29d89868df40c6845a751c4865
---
M src/common/main.c
M src/common/vty.c
2 files changed, 4 insertions(+), 0 deletions(-)



  git pull ssh://gerrit.osmocom.org:29418/osmo-bts refs/changes/31/12931/1

diff --git a/src/common/main.c b/src/common/main.c
index f90a4d4..3a53813 100644
--- a/src/common/main.c
+++ b/src/common/main.c
@@ -33,6 +33,7 @@
 #include <netinet/in.h>
 #include <arpa/inet.h>

+#include <osmocom/core/stats.h>
 #include <osmocom/core/talloc.h>
 #include <osmocom/core/application.h>
 #include <osmocom/vty/telnet_interface.h>
@@ -236,6 +237,7 @@
        bts_vty_info.tall_ctx = tall_bts_ctx;

        osmo_init_logging2(tall_bts_ctx, &bts_log_info);
+       osmo_stats_init(tall_bts_ctx);
        vty_init(&bts_vty_info);
        ctrl_vty_init(tall_bts_ctx);
        rate_ctr_init(tall_bts_ctx);
diff --git a/src/common/vty.c b/src/common/vty.c
index e4a9dc1..9e900b2 100644
--- a/src/common/vty.c
+++ b/src/common/vty.c
@@ -31,6 +31,7 @@
 #include <osmocom/gsm/abis_nm.h>
 #include <osmocom/gsm/protocol/gsm_04_08.h>
 #include <osmocom/vty/vty.h>
+#include <osmocom/vty/stats.h>
 #include <osmocom/vty/command.h>
 #include <osmocom/vty/logging.h>
 #include <osmocom/vty/misc.h>
@@ -1598,6 +1599,7 @@

        logging_vty_add_cmds(cat);
        osmo_talloc_vty_add_cmds();
+       osmo_stats_vty_add_cmds();

        install_node(&bts_node, config_write_bts);
        install_element(CONFIG_NODE, &cfg_bts_cmd);

--
To view, visit https://gerrit.osmocom.org/12931
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.osmocom.org/settings

Gerrit-Project: osmo-bts
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: I9112d9fd527cdc29d89868df40c6845a751c4865
Gerrit-Change-Number: 12931
Gerrit-PatchSet: 1
Gerrit-Owner: Max <msur...@sysmocom.de>

Reply via email to