Error: Invalid label name when using non-ASCII characters in tags #5096
Labels
area:metrics
related to monitoring metrics
bug
Something isn't working
releaseblocker
blocking bugs encountered with a new release
Milestone
π I have found these related issues/pull requests
No correlation has been found
π‘οΈ Security Policy
Description
When using non-ASCII characters (such as Chinese) in tag names, the system throws an "Invalid label name" error during Prometheus metrics initialization.
π Reproduction steps
π Expected behavior
The system should handle non-ASCII tag names gracefully, either by converting them to valid Prometheus label names or by using a separate field for Prometheus-compatible names.
π Actual Behavior
The system crashes with an "Invalid label name" error when initializing Prometheus metrics.
π» Uptime-Kuma Version
2.0.0-dev
π» Operating System and Arch
Ubuntu Linux
π Browser
127.0.6533.120
π₯οΈ Deployment Environment
π Relevant log output
The text was updated successfully, but these errors were encountered: