From 8a01a803a14a34d97c306ab85c8ff309b3ff9976 Mon Sep 17 00:00:00 2001 From: Max Date: Wed, 20 Dec 2017 13:10:11 +0100 Subject: Replace '.' in counter names with ':' The '.' is illegal character in counter names, as they are exported via CTRL interface, where '.' has a special meaning that cannot be used by strings comprising the variable name. Change-Id: I4eb6851d3577f5942ae1a9ab28d3b3ca7ab8e208 --- src/gprs/gb_proxy.c | 2 +- src/gprs/gb_proxy_peer.c | 2 +- src/gprs/gtphub.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/gprs/gb_proxy.c b/src/gprs/gb_proxy.c index 17a01091b..6a9bc22ae 100644 --- a/src/gprs/gb_proxy.c +++ b/src/gprs/gb_proxy.c @@ -70,7 +70,7 @@ static const struct rate_ctr_desc global_ctr_description[] = { }; static const struct rate_ctr_group_desc global_ctrg_desc = { - .group_name_prefix = "gbproxy.global", + .group_name_prefix = "gbproxy:global", .group_description = "GBProxy Global Statistics", .num_ctr = ARRAY_SIZE(global_ctr_description), .ctr_desc = global_ctr_description, diff --git a/src/gprs/gb_proxy_peer.c b/src/gprs/gb_proxy_peer.c index 69cce3ac0..f2cdd9388 100644 --- a/src/gprs/gb_proxy_peer.c +++ b/src/gprs/gb_proxy_peer.c @@ -73,7 +73,7 @@ static const struct rate_ctr_desc peer_ctr_description[] = { osmo_static_assert(ARRAY_SIZE(peer_ctr_description) == GBPROX_PEER_CTR_LAST, everything_described); static const struct rate_ctr_group_desc peer_ctrg_desc = { - .group_name_prefix = "gbproxy.peer", + .group_name_prefix = "gbproxy:peer", .group_description = "GBProxy Peer Statistics", .num_ctr = ARRAY_SIZE(peer_ctr_description), .ctr_desc = peer_ctr_description, diff --git a/src/gprs/gtphub.c b/src/gprs/gtphub.c index 7e3e6631e..5e962f292 100644 --- a/src/gprs/gtphub.c +++ b/src/gprs/gtphub.c @@ -125,7 +125,7 @@ static const struct rate_ctr_desc gtphub_counters_io_desc[] = { }; static const struct rate_ctr_group_desc gtphub_ctrg_io_desc = { - .group_name_prefix = "gtphub.bind", + .group_name_prefix = "gtphub:bind", .group_description = "I/O Statistics", .num_ctr = ARRAY_SIZE(gtphub_counters_io_desc), .ctr_desc = gtphub_counters_io_desc, -- cgit v1.2.3