Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PMM-12382 Match custom labels based on prometheus model #681

Merged
merged 5 commits into from
Aug 23, 2023

Conversation

matejkubinec
Copy link
Collaborator

@matejkubinec matejkubinec commented Aug 2, 2023

What this PR does / why we need it:

Lessens restrictions on custom labels to include uppercase, dashes, underscores, etc.

Which issue(s) this PR fixes:

PMM-12382

FB: Percona-Lab/pmm-submodules#3354

Special notes for your reviewer:

Prometheus Data Model - https://prometheus.io/docs/concepts/data_model/#metric-names-and-labels

In short keys must match following regex [a-zA-Z_][a-zA-Z0-9_]*, value can contain any unicode characters. In our case spaces (used to separe labels) and colons (used as key/value separator) are not permitted in value.

@matejkubinec matejkubinec merged commit 6c59e50 into main Aug 23, 2023
7 checks passed
@matejkubinec matejkubinec deleted the PMM-12382-custom-labels-validation branch August 23, 2023 11:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants