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

Making mapperConfigDefaults public #491

Merged

Conversation

gaantunes
Copy link
Contributor

@gaantunes gaantunes commented Mar 13, 2023

This is making the mapperConfigDefaults and metricObjective structs inside MetricMapper object public, so that Grafana Agent or any other application embedding this exporter can instatiate MetricMapper without using the InitFromYAMLString directly.

This is really helpful when you are not defining your configuration using YAML standard.

@gaantunes gaantunes force-pushed the gaantunes/mapperConfigDefaults-public branch 3 times, most recently from 9d8fda4 to 43d6325 Compare March 13, 2023 21:11
Copy link
Contributor

@matthiasr matthiasr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Makes sense!

There seems to be a problem with CircleCI running the tests, is this because the grafana org denies it access?

…na Agent can instantiate MetricMapper without using InitFromYAMLString directly.

Signed-off-by: Gabriel Antunes <[email protected]>
@gaantunes gaantunes force-pushed the gaantunes/mapperConfigDefaults-public branch from 43d6325 to 24e2fc9 Compare March 15, 2023 23:10
@gaantunes
Copy link
Contributor Author

Makes sense!

There seems to be a problem with CircleCI running the tests, is this because the grafana org denies it access?

I think it was just missing my account auth on CircleCI, I authenticated and it ran succesfully.

@matthiasr matthiasr merged commit 972cb24 into prometheus:master Mar 16, 2023
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