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(inputs.cloudwatch): enable custom endpoint support #12657

Merged
merged 3 commits into from
Feb 10, 2023

Conversation

powersj
Copy link
Contributor

@powersj powersj commented Feb 9, 2023

If a user specifies a specific region and endpoint, then the cloudwatch client needs to be set up to use those two values and override the default values that are provided.

fixes: #12653

@telegraf-tiger telegraf-tiger bot added fix pr to fix corresponding bug plugin/input 1. Request for new input plugins 2. Issues/PRs that are related to input plugins labels Feb 9, 2023
@powersj powersj marked this pull request as ready for review February 9, 2023 20:24
@powersj powersj added the ready for final review This pull request has been reviewed and/or tested by multiple users and is ready for a final review. label Feb 9, 2023
Copy link
Contributor

@srebhan srebhan left a comment

Choose a reason for hiding this comment

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

Looks good to me. I wonder if we should use the EndpointResolverFromURL function instead of completely customizing the endpoint-resolver, but the present code also works for me. So either change or merge as is @powersj, both is fine with me.

plugins/inputs/cloudwatch/cloudwatch.go Outdated Show resolved Hide resolved
@srebhan srebhan assigned powersj and unassigned srebhan Feb 10, 2023
If a user specifis a specific region and endpoint, then the cloudwatch
client needs to be set up to use those two values and override the
default values that are provided.

fixes: influxdata#12653
@powersj powersj merged commit f206c27 into influxdata:master Feb 10, 2023
powersj added a commit that referenced this pull request Feb 13, 2023
@powersj powersj deleted the fix/12653 branch February 14, 2023 15:02
@powersj powersj restored the fix/12653 branch March 29, 2024 20:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
fix pr to fix corresponding bug plugin/input 1. Request for new input plugins 2. Issues/PRs that are related to input plugins ready for final review This pull request has been reviewed and/or tested by multiple users and is ready for a final review.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Telegraf not using endpoint_url for cloudwatch input
2 participants