Skip to content

Add -disable-account-alias-lookup flag - #1925

Open
NickAdolf wants to merge 1 commit into
prometheus-community:masterfrom
NickAdolf:feature/disable-account-alias-lookup
Open

Add -disable-account-alias-lookup flag#1925
NickAdolf wants to merge 1 commit into
prometheus-community:masterfrom
NickAdolf:feature/disable-account-alias-lookup

Conversation

@NickAdolf

Copy link
Copy Markdown

Adds a CLI flag to skip the IAM ListAccountAliases API call during scrapes. When enabled, the account_alias label on metrics will be empty.

This is useful in environments where:

  • IAM global endpoint access is restricted or undesirable. For us this is generating tons of undue firewall egress sessions and the call isn't needed in our config.
  • The account alias is redundant with customTags configuration. In our case we don't need the alias as its already a custom tag due to dynamic config generation.

Related to #1853
Related to #1541

Adds a CLI flag to skip the IAM ListAccountAliases API call during
scrapes. When enabled, the account_alias label on metrics will be empty.

This is useful in environments where:
- IAM global endpoint access is restricted or undesirable
- The account alias is redundant with customTags configuration
- ListAccountAliases calls consume API rate limits at scale

Fixes prometheus-community#1853
Fixes prometheus-community#1541

Signed-off-by: Nick Adolf <Nick.Adolf@troweprice.com>
@NickAdolf
NickAdolf force-pushed the feature/disable-account-alias-lookup branch from e6b7cc4 to 673a222 Compare August 24, 2026 20:08
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.

1 participant