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.orgMax has submitted this change and it was merged. ( https://gerrit.osmocom.org/12929 ) Change subject: Enable statsd support ...................................................................... Enable statsd support Change-Id: I00b8aa4e59028a4c1098a3bae034e8d8ddfbe681 --- M src/hlr.c M src/hlr_vty.c M tests/test_nodes.vty 3 files changed, 8 insertions(+), 0 deletions(-) Approvals: Harald Welte: Looks good to me, approved Pau Espin Pedrol: Looks good to me, but someone else must approve Jenkins Builder: Verified diff --git a/src/hlr.c b/src/hlr.c index 7046180..c544310 100644 --- a/src/hlr.c +++ b/src/hlr.c @@ -23,6 +23,7 @@ #include <getopt.h> #include <osmocom/core/msgb.h> +#include <osmocom/core/stats.h> #include <osmocom/core/logging.h> #include <osmocom/core/application.h> #include <osmocom/gsm/gsup.h> @@ -663,6 +664,7 @@ exit(1); } + osmo_stats_init(hlr_ctx); vty_init(&vty_info); ctrl_vty_init(hlr_ctx); handle_options(argc, argv); diff --git a/src/hlr_vty.c b/src/hlr_vty.c index 04e0191..d0a623a 100644 --- a/src/hlr_vty.c +++ b/src/hlr_vty.c @@ -27,6 +27,7 @@ #include <osmocom/core/talloc.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> @@ -367,6 +368,7 @@ { logging_vty_add_cmds(cat); osmo_talloc_vty_add_cmds(); + osmo_stats_vty_add_cmds(); install_element_ve(&show_gsup_conn_cmd); diff --git a/tests/test_nodes.vty b/tests/test_nodes.vty index ee7885b..d90fa70 100644 --- a/tests/test_nodes.vty +++ b/tests/test_nodes.vty @@ -16,6 +16,10 @@ show talloc-context (application|all) (full|brief|DEPTH) show talloc-context (application|all) (full|brief|DEPTH) tree ADDRESS show talloc-context (application|all) (full|brief|DEPTH) filter REGEXP + show stats + show stats level (global|peer|subscriber) + show asciidoc counters + show rate-counters show gsup-connections subscriber (imsi|msisdn|id|imei) IDENT show show subscriber (imsi|msisdn|id|imei) IDENT -- To view, visit https://gerrit.osmocom.org/12929 To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings Gerrit-Project: osmo-hlr Gerrit-Branch: master Gerrit-MessageType: merged Gerrit-Change-Id: I00b8aa4e59028a4c1098a3bae034e8d8ddfbe681 Gerrit-Change-Number: 12929 Gerrit-PatchSet: 4 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> Gerrit-Reviewer: Neels Hofmeyr <nhofmeyr at sysmocom.de> Gerrit-Reviewer: Pau Espin Pedrol <pespin at sysmocom.de> Gerrit-Reviewer: osmith <osmith at sysmocom.de> -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20190218/1def820e/attachment.htm>