# Basic questions and problems with creating a metricset

**URL:** <https://discuss.elastic.co/t/basic-questions-and-problems-with-creating-a-metricset/155549>\
**Category:** Beats\
**Tags:** metricbeat\
**Created:** [November 6, 2018, 12:59pm UTC](https://discuss.elastic.co/t/basic-questions-and-problems-with-creating-a-metricset/155549 "2018-11-06T12:59:18Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![TheUndertaker](https://avatars.discourse-cdn.com/v4/letter/t/f475e1/32.png) [@TheUndertaker](https://discuss.elastic.co/u/TheUndertaker)\
**Post date:** [November 6, 2018, 12:59pm UTC](https://discuss.elastic.co/t/basic-questions-and-problems-with-creating-a-metricset/155549/1 "2018-11-06T12:59:18Z")

</div>

Hi all 🙂

I ran into some very basic problems that I have difficulty solving.  
I am trying to make a new metricset under the system module. I have downloaded the repo, ran make create-metricset. I got the new metricset visible in the module/system/{metricset} directory, and all looks fine.  
According to the documentation, these steps create a "ready-to-go" framework for my metricset.  
The new metricset is not present in the system.yml file, which I edit and add the "mymetricset" metricset to the config file.

- module: system  
period: 10s  
metricsets:
  - mymetricset
  - cpu
  - load
  - memory
  - network
  - process
  - process\_summary

Now after running "make update" the system.yml gets restored to default and whatever I change in the system.yml file (either adding my metricset, or removing other default ones). No error etc spits on the screen. I then run "make collect; make" and test the module with -e -d "\*" and I see that my changes are not applied.

Can you help? I assume I am doing something wrong or missing some step, but looking at the documentation I can't see what I missed ☹

Peter

---

<div class="post-metadata">

**Author:** ![shaunak](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/shaunak/32/6643_2.png) [@shaunak](https://discuss.elastic.co/u/shaunak)\
**Post date:** [November 7, 2018, 1:40pm UTC](https://discuss.elastic.co/t/basic-questions-and-problems-with-creating-a-metricset/155549/2 "2018-11-07T13:40:30Z")

</div>

Hi Peter,

I just tried to create a new metricset named `mymetricset` under the `system` module by following the instructions in [https://www.elastic.co/guide/en/beats/devguide/current/creating-metricsets.html](https://www.elastic.co/guide/en/beats/devguide/current/creating-metricsets.html). I was able to successfully create it without any issues.

One note: the metricsets listed in the `modules.d/system.yml` file are the ones that are enabled by default (except the ones that are commented out, of course). When you run `make update`, this file will be reset to it's default state. This default state is determined by the `module/system/_meta/config.yml` file. If you want your metricset to remain in the `modules.d/system.yml` file even after running `make update`, you'll need to add it to the `module/system/_meta/config.yml` file (and also the `module/system/_meta/config.reference.yml` file for completeness).

Hope that helps,

Shaunak

---

<div class="post-metadata">

**Author:** ![TheUndertaker](https://avatars.discourse-cdn.com/v4/letter/t/f475e1/32.png) [@TheUndertaker](https://discuss.elastic.co/u/TheUndertaker)\
**Post date:** [November 7, 2018, 2:13pm UTC](https://discuss.elastic.co/t/basic-questions-and-problems-with-creating-a-metricset/155549/3 "2018-11-07T14:13:42Z")

</div>

" his default state is determined by the `module/system/_meta/config.yml` file"  
That I hope does the trick! I don't know why, I have not found this anywhere and in the documentation it just says to modify the standard yml and run the makes 🙂

Thanks a lot!

---

<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:** [December 5, 2018, 2:14pm UTC](https://discuss.elastic.co/t/basic-questions-and-problems-with-creating-a-metricset/155549/4 "2018-12-05T14:14:12Z")

</div>

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