# Metricbeat AWS Cloudwatch & AWS ELB

**URL:** https://discuss.elastic.co/t/metricbeat-aws-cloudwatch-aws-elb/226089
**Category:** Beats
**Tags:** metricbeat
**Created:** [April 1, 2020, 4:33pm UTC](https://discuss.elastic.co/t/metricbeat-aws-cloudwatch-aws-elb/226089 "2020-04-01T16:33:58Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![Anton91](https://avatars.discourse-cdn.com/v4/letter/a/8797f3/32.png) [@Anton91](https://discuss.elastic.co/u/Anton91)
#### Post date: [April 1, 2020, 4:33pm UTC](https://discuss.elastic.co/t/metricbeat-aws-cloudwatch-aws-elb/226089/1 "2020-04-01T16:33:58Z")

</div>

Hello, everybody,  
unfortunately I do not get any data on AWS Cloudwatch & AWS ELB with Metricbeat. With AWS Cloudwatch I only get the data for EC2 and S3.  
All other modules work ec2,sqs,rds,ebs  
The following settings are stored:

```auto
- module: aws
  period: 300s
  metrics sets:
   - cloudwatch
  metrics:
   - namespace: "*"
  credential_profile_name: default
- module: aws
  period: 60s
  metrics sets:
    - elb
credential_profile_name: default

```

Cloudwatch is running and also metrics from ELB are displayed.

The message I get:

```auto
 INFO [monitoring] log/log.go:145 Non-zero metrics in the last 30s {"monitoring": {"metrics": {"beat":{"cpu":{"system":{"ticks":31},"total":{"ticks":265,"value":265},"user":{"ticks":234}},"handles":{"open":387},"info":{"ephemeral_id":"9744af87-3654-4685-a458-59f671a71409","uptime":{"ms":156252}},"memstats":{"gc_next":13588272,"memory_alloc":6796136,"memory_total":22810928,"rss":12288},"runtime":{"goroutines":25}},"libbeat":{"config":{"module":{"running":0}},"pipeline":{"clients":1,"events":{"active":0}}}}}} 

```

Does anyone have an idea?

---

<div class="post-metadata">

### Author: ![ChrsMark](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/chrsmark/32/55858_2.png) [@ChrsMark](https://discuss.elastic.co/u/ChrsMark)
#### Post date: [April 2, 2020, 8:03am UTC](https://discuss.elastic.co/t/metricbeat-aws-cloudwatch-aws-elb/226089/2 "2020-04-02T08:03:47Z")

</div>

Hi!

Is your configuration correct? I see indentation issues as well as `metrics sets` which is wrong.

Reference: [https://www.elastic.co/guide/en/beats/metricbeat/current/metricbeat-metricset-aws-elb.html#\_configuration\_example\_4](https://www.elastic.co/guide/en/beats/metricbeat/current/metricbeat-metricset-aws-elb.html#_configuration_example_4)

C.

---

<div class="post-metadata">

### Author: ![Anton91](https://avatars.discourse-cdn.com/v4/letter/a/8797f3/32.png) [@Anton91](https://discuss.elastic.co/u/Anton91)
#### Post date: [April 2, 2020, 5:18pm UTC](https://discuss.elastic.co/t/metricbeat-aws-cloudwatch-aws-elb/226089/3 "2020-04-02T17:18:20Z")

</div>

Hi, Chris,

thank you for the answer.

The indentation error occurred to me only here.

What exactly do you recognize as an error? That I didn't leave any credentials? Otherwise my config looks exactly like the example.

I am now running metricbeat on an ec2 instance. This has full access to everything in the account.

```auto
# Module: aws
# Docs: https://www.elastic.co/guide/en/beats/metricbeat/7.5/metricbeat-module-aws.html

#- module: aws
# period: 300s
# metricsets:
# - ec2
# regions:
# - us-east-1
#- module: aws
# period: 300s
# metricsets:
# - cloudwatch
# metrics:
# - namespace: AWS/EC2
# name: ["CPUUtilization", "DiskWriteOps"]
# tags.resource_type_filter: ec2:instance
# #dimensions:
      # - name: InstanceId
      # value: i-0686946e22cf9494a
 # statistic: ["Average", "Maximum"]

#- module: aws
# period: 60s
# metricsets:
# - rds
# credential_profile_name: default
- module: aws
  period: 60s
  metricsets:
    - ec2
# credential_profile_name: default
- module: aws
  period: 60s
  metricsets:
    - sqs
# credential_profile_name: default
- module: aws
  period: 86400s
  metricsets:
    - s3_daily_storage
# credential_profile_name: default
- module: aws
  period: 86400s
  metricsets:
    - s3_request
# credential_profile_name: default
- module: aws
  period: 300s
  metricsets:
    - ebs
# credential_profile_name: default
- module: aws
  period: 300s
  metricsets:
   - cloudwatch
  metrics:
   - namespace: "*"
  credential_profile_name: default
- module: aws
  period: 60s
  metricsets:
    - elb
# credential_profile_name: default

```

The whole config works except ELB and Cloudwatch partially.

For example I don't find any fields like:

aws.cloudwatch.dimensions.LoadBalancerName

aws.cloudwatch.dimensions.FunctionName

---

<div class="post-metadata">

### Author: ![kmroz](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kmroz/32/62741_2.png) [@kmroz](https://discuss.elastic.co/u/kmroz)
#### Post date: [April 20, 2020, 10:21pm UTC](https://discuss.elastic.co/t/metricbeat-aws-cloudwatch-aws-elb/226089/4 "2020-04-20T22:21:38Z")

</div>

Running into this as well. After digging into it, seems the visualizations fields are not set. They are empty when i tried to edit them.

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)
#### Post date: [May 18, 2020, 10:23pm UTC](https://discuss.elastic.co/t/metricbeat-aws-cloudwatch-aws-elb/226089/5 "2020-05-18T22:23:31Z")

</div>

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