forked from tikv/rust-prometheus
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
desc: Replace regex name validation with functions
This allows dropping the dependency on regex, making the instrumentation library much more lightweight. This also fixes a bug with metric name validation, where an initial colon was incorrectly disallowed. See data model for correct format: https://prometheus.io/docs/concepts/data_model/#metric-names-and-labels This may be because the library closely follows the official Go library, which also had this issue. Refs tikv#85 Refs prometheus/client_golang#255
- Loading branch information
1 parent
d0b20d3
commit 2482dac
Showing
3 changed files
with
43 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters