Skip to content

Commit a3cbd2f

Browse files
committed
decode: prometheus: fix text decoding to handle metric names without underscores
Signed-off-by: Eduardo Silva <[email protected]>
1 parent e3a5886 commit a3cbd2f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/cmt_decode_prometheus.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,7 @@ static int split_metric_name(struct cmt_decode_prometheus_context *context,
174174
*subsystem = strchr(*ns, '_');
175175
if (!(*subsystem)) {
176176
*name = *ns;
177+
*subsystem = "";
177178
*ns = "";
178179
}
179180
else {

0 commit comments

Comments
 (0)