# Metricbeat multiple metricsets configuration issue

**URL:** <https://discuss.elastic.co/t/metricbeat-multiple-metricsets-configuration-issue/93208>\
**Category:** Beats\
**Created:** [July 14, 2017, 3:12pm UTC](https://discuss.elastic.co/t/metricbeat-multiple-metricsets-configuration-issue/93208 "2017-07-14T15:12:31Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![atharva07](https://avatars.discourse-cdn.com/v4/letter/a/a8b319/32.png) [@atharva07](https://discuss.elastic.co/u/atharva07)\
**Post date:** [July 14, 2017, 3:12pm UTC](https://discuss.elastic.co/t/metricbeat-multiple-metricsets-configuration-issue/93208/1 "2017-07-14T15:12:31Z")

</div>

Hi ,  
We have configured metricbeats to montior our local system CPU,memory and disk space usage,the following is my metricbeat.yml file content:

> metricbeat.modules:
> 
> - module: system  
> metricsets:
> # CPU stats
> 
> - cpu

> ```
> # System Load stats
> - load
> 
> ```

> ```
> # Per CPU core stats
> #- core
> 
> ```

> ```
> # IO stats
> #- diskio
> 
> ```

> ```
> # Per filesystem stats
> - filesystem
> 
> ```

> ```
> # File system summary stats
> - fsstat
> 
> ```

> ```
> # Memory stats
> - memory
> 
> ```

> ```
> # Network stats
> - network
> 
> ```

> ```
> # Per process stats
> - process
> 
> ```

> ```
> # Sockets (linux only)
> #- socket
> 
> ```
> 
> enabled: true  
> period: 10s  
> processes: ['.\*']  
> **metricsets: ["core", "cpu" ,"memory"]**  
> cpu\_ticks: true

The above config is not working for us , actually we want CPU,Memory and disk space usage for the system module, But it is not giving me memory usage , How to configure multiple metricsets in same config file?? Can you please help me in this I am new to metricbeats, and elasticserach.

Thanks in Advance!!

---

<div class="post-metadata">

**Author:** ![tudor](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tudor/32/3753_2.png) [@tudor](https://discuss.elastic.co/u/tudor)\
**Post date:** [July 17, 2017, 8:41am UTC](https://discuss.elastic.co/t/metricbeat-multiple-metricsets-configuration-issue/93208/2 "2017-07-17T08:41:01Z")

</div>

Can you post your config as a pastebin? Somehow the formatting here is broken.

---

<div class="post-metadata">

**Author:** ![atharva07](https://avatars.discourse-cdn.com/v4/letter/a/a8b319/32.png) [@atharva07](https://discuss.elastic.co/u/atharva07)\
**Post date:** [July 17, 2017, 9:41am UTC](https://discuss.elastic.co/t/metricbeat-multiple-metricsets-configuration-issue/93208/3 "2017-07-17T09:41:39Z")

</div>

Hi this my configurations in metribeat.yml file:

```
metricbeat.modules:
- module: system
metricsets:
# CPU stats
- cpu

# System Load stats
- load

# Per CPU core stats
#- core

# IO stats
#- diskio

# Per filesystem stats
- filesystem

# File system summary stats
- fsstat

# Memory stats
- memory

# Network stats
- network

# Per process stats
- process

# Sockets (linux only)
#- socket
enabled: true
period: 10s
processes: ['.*']
metricsets: ["core", "cpu" ,"memory"]
cpu_ticks: true
```

---

<div class="post-metadata">

**Author:** ![tudor](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tudor/32/3753_2.png) [@tudor](https://discuss.elastic.co/u/tudor)\
**Post date:** [July 17, 2017, 10:23am UTC](https://discuss.elastic.co/t/metricbeat-multiple-metricsets-configuration-issue/93208/4 "2017-07-17T10:23:44Z")

</div>

You might have an indentation issue, the first `metricsets` block needs to be indented with 2 spaces. Also, you seem to define the metric sets twice, which doesn't make sense.

---

<div class="post-metadata">

**Author:** ![atharva07](https://avatars.discourse-cdn.com/v4/letter/a/a8b319/32.png) [@atharva07](https://discuss.elastic.co/u/atharva07)\
**Post date:** [July 18, 2017, 5:04am UTC](https://discuss.elastic.co/t/metricbeat-multiple-metricsets-configuration-issue/93208/5 "2017-07-18T05:04:42Z")

</div>

Hi Tudor,

Can you please post the exact configuration and with correct indention here. I tried at my side but still it is not working. Thanks for your help!

---

<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:** [August 4, 2017, 3:12pm UTC](https://discuss.elastic.co/t/metricbeat-multiple-metricsets-configuration-issue/93208/6 "2017-08-04T15:12:41Z")

</div>

This topic was automatically closed after 21 days. New replies are no longer allowed.
