Skip to content

feat(prometheus.exporter.cloudwatch): Use aws-sdk-go-v2 by default#5768

Merged
x1unix merged 6 commits into
mainfrom
x1unix/feat/prom-cloudwatch-default-aws-sdk-v2
Mar 11, 2026
Merged

feat(prometheus.exporter.cloudwatch): Use aws-sdk-go-v2 by default#5768
x1unix merged 6 commits into
mainfrom
x1unix/feat/prom-cloudwatch-default-aws-sdk-v2

Conversation

@x1unix
Copy link
Copy Markdown
Member

@x1unix x1unix commented Mar 11, 2026

Brief description of Pull Request

Use aws-sdk-go-v2 by default for prometheus.exporter.cloudwatch and deprecate the aws_sdk_version_v2 parameter.

This is a breaking change, as the default component params are changed.

Pull Request Details

The prometheus.exporter.cloudwatch component uses a github.com/prometheus-community/yet-another-cloudwatch-exporter package under the hood, which provides implementation for both v1 and v2 AWS SDKs.

Previously, the component used v1 SDK by default, which is EOL and no longer supported.

This PR:

  • Sets aws_sdk_version_v2 to be true by default.
  • Adds deprecation warning if aws_sdk_version_v2 is set to `false.
  • Adds a deprecation note to the component doc.

Issue(s) fixed by this Pull Request

Part of #2936

Notes to the Reviewer

PR Checklist

  • Documentation added
  • Tests updated

@x1unix x1unix requested review from a team and clayton-cornell as code owners March 11, 2026 19:02
@x1unix x1unix changed the title feat(prometheus.exporter.cloudwatch): use aws-sdk-go-v2 by default feat(prometheus.exporter.cloudwatch): Use aws-sdk-go-v2 by default Mar 11, 2026
@x1unix x1unix force-pushed the x1unix/feat/prom-cloudwatch-default-aws-sdk-v2 branch from 3fd6141 to e09f0aa Compare March 11, 2026 19:03
@github-actions
Copy link
Copy Markdown
Contributor

💻 Deploy preview available (feat(prometheus.exporter.cloudwatch): use aws-sdk-go-v2 by default):

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Mar 11, 2026

💻 Deploy preview deleted (feat(prometheus.exporter.cloudwatch): Use aws-sdk-go-v2 by default).

@x1unix x1unix merged commit a2f3489 into main Mar 11, 2026
48 checks passed
@x1unix x1unix deleted the x1unix/feat/prom-cloudwatch-default-aws-sdk-v2 branch March 11, 2026 20:06
@github-actions github-actions Bot locked as resolved and limited conversation to collaborators Mar 26, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants