Change in libosmo-sccp[master]: OsmoSTP: enable statsd support

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.

Max gerrit-no-reply at lists.osmocom.org
Mon Feb 18 12:41:54 UTC 2019


Max has submitted this change and it was merged. ( https://gerrit.osmocom.org/12930 )

Change subject: OsmoSTP: enable statsd support
......................................................................

OsmoSTP: enable statsd support

Change-Id: I5309ae44e5b9eda1a5dd1bbf10db5ffdff1fa9cd
---
M stp/stp_main.c
1 file changed, 4 insertions(+), 0 deletions(-)

Approvals:
  Harald Welte: Looks good to me, approved
  Jenkins Builder: Verified



diff --git a/stp/stp_main.c b/stp/stp_main.c
index 0efe4ed..0554b4a 100644
--- a/stp/stp_main.c
+++ b/stp/stp_main.c
@@ -25,6 +25,7 @@
 #include <getopt.h>
 #include <signal.h>
 
+#include <osmocom/core/stats.h>
 #include <osmocom/core/select.h>
 #include <osmocom/core/signal.h>
 #include <osmocom/core/talloc.h>
@@ -33,6 +34,7 @@
 #include <osmocom/core/application.h>
 #include <osmocom/core/fsm.h>
 #include <osmocom/vty/vty.h>
+#include <osmocom/vty/stats.h>
 #include <osmocom/vty/command.h>
 #include <osmocom/vty/ports.h>
 #include <osmocom/vty/telnet_interface.h>
@@ -163,6 +165,7 @@
 	tall_stp_ctx = talloc_named_const(NULL, 1, "osmo-stp");
 	msgb_talloc_ctx_init(tall_stp_ctx, 0);
 	osmo_init_logging2(tall_stp_ctx, &log_info);
+	osmo_stats_init(tall_stp_ctx);
 	vty_init(&vty_info);
 
 	handle_options(argc, argv);
@@ -173,6 +176,7 @@
 	osmo_ss7_init();
 	osmo_fsm_log_addr(false);
 	logging_vty_add_cmds(&log_info);
+	osmo_stats_vty_add_cmds();
 	osmo_ss7_vty_init_sg(tall_stp_ctx);
 	osmo_sccp_vty_init();
 	osmo_fsm_vty_add_cmds();

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

Gerrit-Project: libosmo-sccp
Gerrit-Branch: master
Gerrit-MessageType: merged
Gerrit-Change-Id: I5309ae44e5b9eda1a5dd1bbf10db5ffdff1fa9cd
Gerrit-Change-Number: 12930
Gerrit-PatchSet: 1
Gerrit-Owner: Max <msuraev at sysmocom.de>
Gerrit-Reviewer: Harald Welte <laforge at gnumonks.org>
Gerrit-Reviewer: Jenkins Builder (1000002)
Gerrit-Reviewer: Max <msuraev at sysmocom.de>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20190218/7bbc7416/attachment.htm>


More information about the gerrit-log mailing list