-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
fix: Fix parsing for dimension names from CloudWatch tag identifier values #33040
Conversation
This pull request does not have a backport label.
To fixup this pull request, you need to add the backport labels for the needed
|
f6bca84
to
dbb8ce4
Compare
❕ Build Aborted
Expand to view the summary
Build stats
Steps errorsExpand to view the steps failures
|
8960f81
to
2c546ef
Compare
2c546ef
to
03218ec
Compare
This pull request is now in conflicts. Could you fix it? 🙏
|
88cc90a
to
b574921
Compare
@cjr125 there's no need to add a new metricset to metrcibeat you can collect the metrics you need just adding the following to your
|
c0b21d1
to
0ff090b
Compare
💚 CLA has been signed |
0ff090b
to
510295b
Compare
@aspacca I do actually need part of this code to fix a problem with using tags_filter on CloudFront metrics in CloudWatch. The identifier values include dimension names which break the standard tag filtering logic. please see the updates (I left the commit history) |
can you explain your use case with an example? |
This pull request is now in conflicts. Could you fix it? 🙏
|
When loading metrics using the following config, I am able to print the following:
identifierValue: Global,E5TGO8HHLKEA8 |
5e410a9
to
342bc81
Compare
This reverts commit 9f4b35cae8443d60ce3252b55f83d90701534da9.
342bc81
to
af47c3d
Compare
you should use this full value in the with the other PR you've created you can add multiple values for the same tag filter |
I'm not sure I follow what you are suggesting. These identifier values are what come back when I try to apply the filter for a specific application environment which we need to monitor. I need the filter to select all CloudFront distributions tagged with this environment name. For other namespaces, the identifier values do not contain dimension names (Global in this case) and the filtering works properly. In the case of the CloudFront namespace, however, the dimension name must be trimmed off in order to capture the desired identifier value. Is there some other way this problem can be approached? |
This pull request is now in conflicts. Could you fix it? 🙏
|
What does this PR do?
Fix parsing for dimension names from CloudWatch tag identifier values
Why is it important?
This change is necessary for filtering CloudWatch metric tags with dimensions attached to identifier values
Checklist
CHANGELOG.next.asciidoc
orCHANGELOG-developer.next.asciidoc
.Author's Checklist