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

AWSPrometheusRemoteWriteExporter - Add SDK and system information to User-Agent header #3317

Merged

Conversation

dhruv-vora
Copy link
Contributor

@dhruv-vora dhruv-vora commented May 4, 2021

Description:
In order to better understand usage patterns for the AWS Prometheus Remote Write exporter in the Collector, we’re adding SDK and system information in the request header.

@dhruv-vora dhruv-vora requested a review from a team May 4, 2021 17:26
Copy link
Member

@alolita alolita left a comment

Choose a reason for hiding this comment

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

+1

@alolita
Copy link
Member

alolita commented May 4, 2021

Requesting reviews from @Aneurysm9 @anuraaga

@bogdandrutu
Copy link
Member

@dhruv-vora please address @anuraaga feedback

@@ -16,6 +16,7 @@ package awsprometheusremotewriteexporter

Copy link
Contributor

Choose a reason for hiding this comment

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

If I'm not mistaken we don't have a test verifying the user agent (it would be some sort of fuzzy match I guess)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I have modified the tests to add verification of the user-agent header

exporter/awsprometheusremotewriteexporter/auth.go Outdated Show resolved Hide resolved
@bogdandrutu
Copy link
Member

Please rebase to be able to pass one test that uses expired certificates and was fixed

@bogdandrutu bogdandrutu merged commit 40f1090 into open-telemetry:main May 10, 2021
alexperez52 referenced this pull request in open-o11y/opentelemetry-collector-contrib Aug 18, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants