laforge has submitted this change. ( 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(-)
Approvals: Jenkins Builder: Verified laforge: Looks good to me, approved
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();