-
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
[AWS] Support owning account for cross account monitoring #40691
[AWS] Support owning account for cross account monitoring #40691
Conversation
Pinging @elastic/obs-ds-hosted-services (Team:obs-ds-hosted-services) |
69c5245
to
a5e9003
Compare
41b36f2
to
580d9ed
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
580d9ed
to
b9ed778
Compare
|
@elastic/elastic-agent-data-plane Could we get a review for this PR please? Thanks!! |
Signed-off-by: Kavindu Dodanduwa <kavindu.dodanduwa@elastic.co>
Signed-off-by: Kavindu Dodanduwa <kavindu.dodanduwa@elastic.co>
Signed-off-by: Kavindu Dodanduwa <kavindu.dodanduwa@elastic.co>
Co-authored-by: kaiyan-sheng <kaiyan.sheng@elastic.co>
Co-authored-by: kaiyan-sheng <kaiyan.sheng@elastic.co>
Signed-off-by: Kavindu Dodanduwa <kavindu.dodanduwa@elastic.co>
b9ed778
to
104fdb7
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approving for the Elastic Agent Data Plane part as this is only adding new configuration entries in the yml file.
Thank you @pierrehilbert Yes, this adds |
* support OwniningAccount filtering Signed-off-by: Kavindu Dodanduwa <kavindu.dodanduwa@elastic.co> * document the new paramter Signed-off-by: Kavindu Dodanduwa <kavindu.dodanduwa@elastic.co> * add changelog Signed-off-by: Kavindu Dodanduwa <kavindu.dodanduwa@elastic.co> * Update CHANGELOG.next.asciidoc Co-authored-by: kaiyan-sheng <kaiyan.sheng@elastic.co> * Update x-pack/metricbeat/modules.d/aws.yml.disabled Co-authored-by: kaiyan-sheng <kaiyan.sheng@elastic.co> * add missing docuemntation of owning_account parameter Signed-off-by: Kavindu Dodanduwa <kavindu.dodanduwa@elastic.co> --------- Signed-off-by: Kavindu Dodanduwa <kavindu.dodanduwa@elastic.co> Co-authored-by: kaiyan-sheng <kaiyan.sheng@elastic.co> (cherry picked from commit 03e7699)
I just remembered that you mentioned the target is 8.15.2: you should add the |
* support OwniningAccount filtering Signed-off-by: Kavindu Dodanduwa <kavindu.dodanduwa@elastic.co> * document the new paramter Signed-off-by: Kavindu Dodanduwa <kavindu.dodanduwa@elastic.co> * add changelog Signed-off-by: Kavindu Dodanduwa <kavindu.dodanduwa@elastic.co> * Update CHANGELOG.next.asciidoc Co-authored-by: kaiyan-sheng <kaiyan.sheng@elastic.co> * Update x-pack/metricbeat/modules.d/aws.yml.disabled Co-authored-by: kaiyan-sheng <kaiyan.sheng@elastic.co> * add missing docuemntation of owning_account parameter Signed-off-by: Kavindu Dodanduwa <kavindu.dodanduwa@elastic.co> --------- Signed-off-by: Kavindu Dodanduwa <kavindu.dodanduwa@elastic.co> Co-authored-by: kaiyan-sheng <kaiyan.sheng@elastic.co> (cherry picked from commit 03e7699)
…40860) * support OwniningAccount filtering Signed-off-by: Kavindu Dodanduwa <kavindu.dodanduwa@elastic.co> * document the new paramter Signed-off-by: Kavindu Dodanduwa <kavindu.dodanduwa@elastic.co> * add changelog Signed-off-by: Kavindu Dodanduwa <kavindu.dodanduwa@elastic.co> * Update CHANGELOG.next.asciidoc Co-authored-by: kaiyan-sheng <kaiyan.sheng@elastic.co> * Update x-pack/metricbeat/modules.d/aws.yml.disabled Co-authored-by: kaiyan-sheng <kaiyan.sheng@elastic.co> * add missing docuemntation of owning_account parameter Signed-off-by: Kavindu Dodanduwa <kavindu.dodanduwa@elastic.co> --------- Signed-off-by: Kavindu Dodanduwa <kavindu.dodanduwa@elastic.co> Co-authored-by: kaiyan-sheng <kaiyan.sheng@elastic.co> (cherry picked from commit 03e7699) Co-authored-by: Kavindu Dodanduwa <Kavindu-Dodan@users.noreply.github.com>
…t monitoring (#40864) * [AWS] Support owning account for cross account monitoring (#40691) * support OwniningAccount filtering Signed-off-by: Kavindu Dodanduwa <kavindu.dodanduwa@elastic.co> * document the new paramter Signed-off-by: Kavindu Dodanduwa <kavindu.dodanduwa@elastic.co> * add changelog Signed-off-by: Kavindu Dodanduwa <kavindu.dodanduwa@elastic.co> * Update CHANGELOG.next.asciidoc Co-authored-by: kaiyan-sheng <kaiyan.sheng@elastic.co> * Update x-pack/metricbeat/modules.d/aws.yml.disabled Co-authored-by: kaiyan-sheng <kaiyan.sheng@elastic.co> * add missing docuemntation of owning_account parameter Signed-off-by: Kavindu Dodanduwa <kavindu.dodanduwa@elastic.co> --------- Signed-off-by: Kavindu Dodanduwa <kavindu.dodanduwa@elastic.co> Co-authored-by: kaiyan-sheng <kaiyan.sheng@elastic.co> (cherry picked from commit 03e7699) * Update CHANGELOG.next.asciidoc for the backport --------- Co-authored-by: Kavindu Dodanduwa <Kavindu-Dodan@users.noreply.github.com>
Proposed commit message
Adds
owning_account
configuration option for AWS where it accepts a source account ID. Internally, this maps to the ListMetrics API's 1OwningAccount
parameter. Note thatinclude_linked_accounts
should be set totrue
to use the account filtering.See the screenshot below from an actual run with owning account filtering,
In comparison, consider the screenshot below where both monitoring account and linked accounts are visible as there is no filtering for
owning_account
,Checklist
CHANGELOG.next.asciidoc
orCHANGELOG-developer.next.asciidoc
.Disruptive User Impact
None :
owning_account
is a new configurationHow to test this PR locally
include_linked_accounts
set to true (default is already true) &owning_account
account IDcloud.account.id
match withowning_account
IDRelated issues
Closes #40570
Footnotes
https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_ListMetrics.html#API_ListMetrics_RequestParameters ↩