AWS EC2 metrics integration not getting all values

Hi,

I am using Elastic 8.9.2. I'm trying to grab EC2 metrics via Elastic Agent integration (not using metricbeat for some reason).

The integration is done, but for some reason, it is not getting all the values. The configuration is quite simple as I am using all default values. Here's the configuration:



Then I dig into the policy:

  - id: aws/metrics-ec2-4d300143-d32a-48e9-81ce-979b70f14bcf
    name: aws-3
    revision: 20
    type: aws/metrics
    use_output: default
    meta:
      package:
        name: aws
        version: 2.9.1
    data_stream:
      namespace: default
    package_policy_id: 4d300143-d32a-48e9-81ce-979b70f14bcf
    streams:
      - id: aws/metrics-aws.ec2_metrics-4d300143-d32a-48e9-81ce-979b70f14bcf
        data_stream:
          dataset: aws.ec2_metrics
          type: metrics
        access_key_id: 123
        period: 5m
        metricsets:
          - cloudwatch
        secret_access_key: 123/123
        include_linked_accounts: true
        metrics:
          - name:
              - CPUUtilization
              - CPUCreditUsage
              - CPUCreditBalance
              - CPUSurplusCreditBalance
              - CPUSurplusCreditsCharged
              - StatusCheckFailed
              - StatusCheckFailed_Instance
              - StatusCheckFailed_System
            statistic:
              - Average
            namespace: AWS/EC2
            resource_type: 'ec2:instance'
          - name:
              - DiskReadBytes
              - DiskReadOps
              - DiskWriteBytes
              - DiskWriteOps
              - NetworkIn
              - NetworkPacketsIn
              - NetworkOut
              - NetworkPacketsOut
            statistic:
              - Sum
            namespace: AWS/EC2
            resource_type: 'ec2:instance'

I noticed that it is getting values only for the this "name" code segment:

          - name:
              - CPUUtilization
              - CPUCreditUsage
              - CPUCreditBalance
              - CPUSurplusCreditBalance
              - CPUSurplusCreditsCharged
              - StatusCheckFailed
              - StatusCheckFailed_Instance
              - StatusCheckFailed_System

I've sent all the metrics to Cloudwatch as well. But when I'm using Cloudwatch integration, it does not collect anything at all (Cloudwatch logs works but not Cloudwatch metrics).

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.