mirror of https://gerrit.osmocom.org/libosmocore
statsd: do not omit index==0 when sending stat item groups
This commit is contained in:
parent
fd26776526
commit
1405163e3d
|
@ -99,24 +99,16 @@ static int osmo_stats_reporter_statsd_send(struct osmo_stats_reporter *srep,
|
|||
int old_len = msgb_length(srep->buffer);
|
||||
|
||||
if (prefix) {
|
||||
if (name1) {
|
||||
if (index1 != 0)
|
||||
fmt = "%1$s.%2$s.%6$u.%3$s:%4$d|%5$s";
|
||||
else
|
||||
fmt = "%1$s.%2$s.%3$s:%4$d|%5$s";
|
||||
} else {
|
||||
if (name1)
|
||||
fmt = "%1$s.%2$s.%6$u.%3$s:%4$d|%5$s";
|
||||
else
|
||||
fmt = "%1$s.%2$0.0s%3$s:%4$d|%5$s";
|
||||
}
|
||||
} else {
|
||||
prefix = "";
|
||||
if (name1) {
|
||||
if (index1 != 0)
|
||||
fmt = "%1$s%2$s.%6$u.%3$s:%4$d|%5$s";
|
||||
else
|
||||
fmt = "%1$s%2$s.%3$s:%4$d|%5$s";
|
||||
} else {
|
||||
if (name1)
|
||||
fmt = "%1$s%2$s.%6$u.%3$s:%4$d|%5$s";
|
||||
else
|
||||
fmt = "%1$s%2$0.0s%3$s:%4$d|%5$s";
|
||||
}
|
||||
}
|
||||
|
||||
if (srep->agg_enabled) {
|
||||
|
|
Loading…
Reference in New Issue