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

fix(prometheus_sink): log errors and fallback to default metric mapper #727

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

Conversation

harpunius
Copy link

I recently migrated from statsd-exporter to the prometheus sink, and couldn't make the mapping work, until I found that the path didn't match up. This error is not logged currently, which is the main motivation for this PR.

I then thought that it would be nicer to fallback to the default mapper instead of having no mapping at all. Happy to rollback the default handling and simply add the error logs instead.

TestPrometheusSinkMetricMapperDefaultHandling is simply a test that would fail without these changes.

@harpunius harpunius force-pushed the prometheus-sink-mapper-default-handling branch from 088ab19 to 95d8cf0 Compare October 8, 2024 13:06
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