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

Discard tags with empty fields #92

Merged
merged 1 commit into from
Dec 19, 2022
Merged

Discard tags with empty fields #92

merged 1 commit into from
Dec 19, 2022

Conversation

codebien
Copy link
Contributor

Labels with empty key or value are not allowed by the remote write spec, so if any seen tag contains them then they are not mapped to the related label.

Prometheus server automatically discards them but other remote write implementations return a validation error. (e.g. Thanos).

Credits to @afajl that reports the issue.

Labels with empty key or value are not allowed by the remote write spec,
so if any seen tag contains them then they are not mapped to the related
label.
@codebien codebien self-assigned this Dec 19, 2022
@codebien codebien merged commit e62cccf into main Dec 19, 2022
@codebien codebien deleted the tag-set-empty branch December 19, 2022 17:16
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.

None yet

2 participants