client_rust icon indicating copy to clipboard operation
client_rust copied to clipboard

Metric names containing spaces are not valid

Open 08d2 opened this issue 3 years ago • 1 comments

Code like e.g. this suggests that this crate permits metric names containing spaces. The data model asserts that

The metric name. . . may contain ASCII letters and digits, as well as underscores and colons. It must match the regex [a-zA-Z_:][a-zA-Z0-9_:]*.

Names that don't meet these criteria should be rejected.

08d2 avatar Dec 06 '22 05:12 08d2

See also https://github.com/prometheus/client_rust/issues/52.

mxinden avatar Dec 06 '22 20:12 mxinden