Skip to content

discovery/aws: Fix region load from IMDS#17376

Merged
krajorama merged 3 commits intoprometheus:release-3.7from
sysadmind:fix-17375
Oct 22, 2025
Merged

discovery/aws: Fix region load from IMDS#17376
krajorama merged 3 commits intoprometheus:release-3.7from
sysadmind:fix-17375

Conversation

@sysadmind
Copy link
Contributor

@sysadmind sysadmind commented Oct 21, 2025

Loading the local region from the Instance MetaData Service broke in v3.7. This adds the IMDS call back in order to load the local region when no other method has set the region.

Which issue(s) does the PR fix:

Fixes #17375

Does this PR introduce a user-facing change?

NONE

 [BUGFIX]  Load AWS region from IMDS when not set

Loading the local region from the Instance MetaData Service broke in v3.7. This adds the IMDS call back in order to load the local region when no other method has set the region.

fixes prometheus#17375

Signed-off-by: Joe Adams <github@joeadams.io>
Signed-off-by: Joe Adams <github@joeadams.io>
@roidelapluie
Copy link
Member

Do we need this for lightsail too ?

Signed-off-by: Joe Adams <github@joeadams.io>
@sysadmind
Copy link
Contributor Author

@roidelapluie Thanks for pointing that out. I didn't think that lightsail had IMDS but your question prompted me to investigate and it turns out it does.

@sysadmind
Copy link
Contributor Author

Are the windows tests flaky? I had to rerun them.

@krajorama krajorama merged commit d06c961 into prometheus:release-3.7 Oct 22, 2025
84 of 86 checks passed
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.

3 participants