diff options
author | Max <msuraev@sysmocom.de> | 2017-12-20 13:10:11 +0100 |
---|---|---|
committer | Max <msuraev@sysmocom.de> | 2017-12-20 16:52:03 +0000 |
commit | 8a01a803a14a34d97c306ab85c8ff309b3ff9976 (patch) | |
tree | 6896625a887e4180f204290649fb801cc0835347 /src | |
parent | ceccd4611ffba3a1e5856ed51fea51f51a7b81a2 (diff) |
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
Diffstat (limited to 'src')
-rw-r--r-- | src/gprs/gb_proxy.c | 2 | ||||
-rw-r--r-- | src/gprs/gb_proxy_peer.c | 2 | ||||
-rw-r--r-- | 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, |