prometheus / prometheus/client_rust

UTF-8: Implement support in Rust client library

Open
#190 6 comments 0 reactions 2 assignees View on GitHub

@ywwg is already working on this.

Since Feb 28, 2025.

help wanted priority/P3
Dominant language
Rust
Stars
606
Forks
113
Avg merge
9h 7m
Merged PRs (30d)
8

Description

As in https://github.com/prometheus/client_golang/issues/1369 and https://github.com/prometheus/client_java/issues/916, the Rust client library needs to be updated to support UTF-8.

Tasks:

  • Add flag to enable change in validation logic to check that metric and label names are UTF-8 valid instead of the old letters/numbers/underscores/colons set
  • Update exposition format parsers for the new syntax
  • Update PromQL parsers (if any) for the new syntax
  • Update content negotiation logic

For background and references see https://github.com/prometheus/prometheus/issues/13095

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.