beats icon indicating copy to clipboard operation
beats copied to clipboard

[aws] missing metrics when include_linked_accounts set to false

Open kaiyan-sheng opened this issue 1 year ago • 2 comments

  • Version: v1.51.3 AWS integration with 8.8.2 agent
  • Operating System: agent running on linux EC2 instance
  • Steps to Reproduce:
  1. Create RDS instances in the same account and make sure there are metrics coming into CloudWatch: Screenshot 2024-07-01 at 3 01 52 PM
  2. Run agent and install AWS RDS integration with config latency=10m just to make sure metric collection does not get impacted by latency. Keep include_linked_accounts = false and here are the metrics you can see from Kibana: Screenshot 2024-07-01 at 2 18 32 PM We only see metrics from 2 RDS instances.
  3. Change agent policy to include_linked_accounts = true, save the policy and here are the metrics you can see from Kibana: Screenshot 2024-07-01 at 2 41 47 PM We can see metrics from all 5 RDS instances.

These RDS instances are all from the same AWS account, cross account monitoring is not enabled either. include_linked_accounts should not affect the results.

kaiyan-sheng avatar Jul 01 '24 21:07 kaiyan-sheng

Pinging @elastic/obs-ds-hosted-services (Team:obs-ds-hosted-services)

elasticmachine avatar Jul 01 '24 21:07 elasticmachine

Test list-metrics API, which is the one uses include_linked_accounts config parameter:

aws cloudwatch list-metrics --namespace AWS/RDS --metric-name CPUUtilization --region eu-west-3 --profile elastic-observability --recently-active PT3H --include-linked-accounts --dimensions Name=DBClusterIdentifier

and

aws cloudwatch list-metrics --namespace AWS/RDS --metric-name CPUUtilization --region eu-west-3 --profile elastic-observability --recently-active PT3H --no-include-linked-accounts --dimensions Name=DBClusterIdentifier

returns the same result.

Will test with metricbeat directly next.

kaiyan-sheng avatar Jul 01 '24 22:07 kaiyan-sheng