Skip to content

Commit

Permalink
usrloc: change "-" for "_" in stats name to be prometheus compliant
Browse files Browse the repository at this point in the history
  • Loading branch information
grumvalski committed Apr 28, 2020
1 parent c9468fe commit ddd2771
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/modules/usrloc/udomain.c
Expand Up @@ -61,7 +61,7 @@ static char *build_stat_name( str* domain, char *var_name)
}
memcpy( s, domain->s, domain->len);
p = s + domain->len;
*(p++) = '-';
*(p++) = '_';
memcpy( p , var_name, strlen(var_name));
p += strlen(var_name);
*(p++) = 0;
Expand Down

0 comments on commit ddd2771

Please sign in to comment.