Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Metricbeat] Fix ARN parsing function to work for ELB ANRs #14316

Merged
merged 2 commits into from
Oct 29, 2019
Merged

[Metricbeat] Fix ARN parsing function to work for ELB ANRs #14316

merged 2 commits into from
Oct 29, 2019

Conversation

kaiyan-sheng
Copy link
Contributor

@kaiyan-sheng kaiyan-sheng commented Oct 29, 2019

This PR is to fix a bug in ARN parser findIdentifierFromARN. It used to only work for arns with short resource string with only two parts, such as instance/i-123. Now with this change, the parser should work for other resource strings as well with more than two parts, such as loadbalancer/net/ece-es-clusters-nlb/0c5bdb3b96cf1552.

Unit test is added for this.

@kaiyan-sheng kaiyan-sheng requested a review from a team as a code owner October 29, 2019 21:47
@kaiyan-sheng kaiyan-sheng added Team:Integrations Label for the Integrations team bug Metricbeat Metricbeat labels Oct 29, 2019
Copy link
Contributor

@fearful-symmetry fearful-symmetry left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, wait and see what CI says.

@kaiyan-sheng kaiyan-sheng self-assigned this Oct 29, 2019
@kaiyan-sheng kaiyan-sheng merged commit 61fa974 into elastic:master Oct 29, 2019
@kaiyan-sheng kaiyan-sheng deleted the arn_parsing branch October 29, 2019 23:42
kaiyan-sheng added a commit that referenced this pull request Oct 30, 2019
…14319)

* Fix findIdentifierFromARN to work for elb arns

(cherry picked from commit 61fa974)
jorgemarey pushed a commit to jorgemarey/beats that referenced this pull request Jun 8, 2020
leweafan pushed a commit to leweafan/beats that referenced this pull request Apr 28, 2023
…4316) (elastic#14319)

* Fix findIdentifierFromARN to work for elb arns

(cherry picked from commit b23bc3d)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Metricbeat Metricbeat Team:Integrations Label for the Integrations team v7.5.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants