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

feat(pyroscope.write): Add labels validation #2918

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

marcsanmi
Copy link
Contributor

@marcsanmi marcsanmi commented Mar 6, 2025

PR Description

This PR adds validation for labels in the pyroscope.write component to ensure compatibility with Pyroscope's validation requirements. The validation:

  • Checks for duplicate labels
  • Validates label names & values according to Pyroscope's standards

Which issue(s) this PR fixes

https://github.com/grafana/pyroscope-squad/issues/357

Notes to the Reviewer

  • I don't check for service_name label existence. As talked, as far as using the receive_http, this should come for free with our ensureServiceName function and also validated at pyroscope side.

PR Checklist

  • CHANGELOG.md updated
  • Documentation added
  • Tests updated
  • Config converters updated

@marcsanmi marcsanmi force-pushed the marcsanmi/add-labels-validation branch from 00c5c64 to 874d4db Compare March 6, 2025 17:04
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.

1 participant