laforge has uploaded this change for review. (
https://gerrit.osmocom.org/c/osmo-e1d/+/27823 )
Change subject: Fix stats exporter
......................................................................
Fix stats exporter
We called osmo_stats_vty_add_cmds() but we didn't call
osmo_stats_init(), resulting in the user being able to configure stats
reporting, but osmo-e1d would simply never generate the related UDP
packets :(
With this commit, osmo-e1d starts to generate the related packets.
Change-Id: Ic373d3056d044af797664215b08ba0880675ae53
---
M src/osmo-e1d.c
1 file changed, 2 insertions(+), 0 deletions(-)
git pull ssh://gerrit.osmocom.org:29418/osmo-e1d refs/changes/23/27823/1
diff --git a/src/osmo-e1d.c b/src/osmo-e1d.c
index ee7c0fb..281cfc7 100644
--- a/src/osmo-e1d.c
+++ b/src/osmo-e1d.c
@@ -37,6 +37,7 @@
#include <osmocom/core/application.h>
#include <osmocom/core/msgb.h>
#include <osmocom/core/select.h>
+#include <osmocom/core/stats.h>
#include <osmocom/vty/telnet_interface.h>
#include <osmocom/vty/logging.h>
#include <osmocom/vty/stats.h>
@@ -183,6 +184,7 @@
e1d_vty_init(e1d);
octoi_init(g_e1d_ctx, e1d, &e1d_octoi_ops);
rate_ctr_init(e1d);
+ osmo_stats_init(e1d);
osmo_stat_item_init(e1d);
osmo_stats_vty_add_cmds();
osmo_talloc_vty_add_cmds();
--
To view, visit
https://gerrit.osmocom.org/c/osmo-e1d/+/27823
To unsubscribe, or for help writing mail filters, visit
https://gerrit.osmocom.org/settings
Gerrit-Project: osmo-e1d
Gerrit-Branch: master
Gerrit-Change-Id: Ic373d3056d044af797664215b08ba0880675ae53
Gerrit-Change-Number: 27823
Gerrit-PatchSet: 1
Gerrit-Owner: laforge <laforge(a)osmocom.org>
Gerrit-MessageType: newchange