-
Notifications
You must be signed in to change notification settings - Fork 10.3k
Migrate AWS discovery code to a new AWS SDK #15572
Copy link
Copy link
Closed
Description
Proposal
Currently, AWS SD depends on aws-sdk-go, which is deprecated. It will not be supported after 7/31/2025. Users are advised to migrate to AWS SDK for Go v2.
Migrating to the new SDK would also improve memory consumption a little bit. In Grafana Alloy, I noticed that github.com/aws/aws-sdk-go/aws/endpoints.init allocates 1.5 MB of memory even if this service discovery is not configured. I suppose Prometheus has the same problem. The memory consumption could add up if users are running hundreds of Prometheus/Alloy instances. It looks like this problem is fixed in v2 of the SDK.
Reactions are currently unavailable