prom-client icon indicating copy to clipboard operation
prom-client copied to clipboard

Support of unicode symbols in a label value

Open WoZ opened this issue 3 years ago • 0 comments

I've found that validation.js's method validateLabelName restricts usage of any unicode characters. Despite this, prometheus allows any unicode characters. Quote:

Label values may contain any Unicode characters. A label with an empty label value is considered equivalent to a label that does not exist.

https://github.com/siimon/prom-client/blob/98b7ad819978436b19a994bb5c9f7bcf7576578a/lib/validation.js#L5-L15

Is there any reason why unicode was restricted? Thank you.

WoZ avatar Feb 20 '22 08:02 WoZ