Skip to content

Conversation

@tristanburgess
Copy link
Contributor

AmazonMQ has special associator logic to match and remove a suffix -[0-9]+$" from the Broker dimension label. This problem solves the case where the resource name in the ARN indeed doesn't have that suffix, because of ActiveMQ adding the suffix to the Broker dimension, but causes an issue if the ARN actually does have that kind of suffix, because the customer named the resource that way.

This PR updates the label building logic to first try to apply any of the custom fixes. If any of them were applied, and there's no resource ARN match from the resulting label set signature, then we try to build a new label set signature with no fixes applied.

@tristanburgess tristanburgess force-pushed the tristanburgess/fix-amazon-mq-resource-assoc branch from cb42c42 to ad742e4 Compare April 8, 2025 13:51
Signed-off-by: Tristan Burgess <[email protected]>
@tristanburgess tristanburgess force-pushed the tristanburgess/fix-amazon-mq-resource-assoc branch from add4106 to 0d22bbf Compare April 8, 2025 15:42
@cristiangreco cristiangreco merged commit 2f33a0e into prometheus-community:master Apr 8, 2025
9 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.

2 participants