# Error creating a Metricset

**URL:** <https://discuss.elastic.co/t/error-creating-a-metricset/79346>\
**Category:** Beats\
**Tags:** metricbeat\
**Created:** [March 21, 2017, 5:01am UTC](https://discuss.elastic.co/t/error-creating-a-metricset/79346 "2017-03-21T05:01:57Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![shweta\_chugh](https://avatars.discourse-cdn.com/v4/letter/s/c68b51/32.png) [@shweta\_chugh](https://discuss.elastic.co/u/shweta_chugh)\
**Post date:** [March 21, 2017, 5:01am UTC](https://discuss.elastic.co/t/error-creating-a-metricset/79346/1 "2017-03-21T05:01:58Z")

</div>

I am trying to create a metricset using command  
**make create-metricset** which gives me this error.

 ![](https://us1.discourse-cdn.com/elastic/original/3X/c/5/c51cbb727c0c3443a07bf165e4da8dcd4209b665.png)

I have Golang 1.8 installed on my system.  
Please help in resolving this.

Thanks

---

<div class="post-metadata">

**Author:** ![ruflin](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ruflin/32/3116_2.png) [@ruflin](https://discuss.elastic.co/u/ruflin)\
**Post date:** [March 21, 2017, 6:48am UTC](https://discuss.elastic.co/t/error-creating-a-metricset/79346/2 "2017-03-21T06:48:08Z")

</div>

Can you try to run `make prepare-tests` and then again `make create-metricset` to see if this solves the error?

---

<div class="post-metadata">

**Author:** ![ruflin](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ruflin/32/3116_2.png) [@ruflin](https://discuss.elastic.co/u/ruflin)\
**Post date:** [March 21, 2017, 6:50am UTC](https://discuss.elastic.co/t/error-creating-a-metricset/79346/3 "2017-03-21T06:50:38Z")

</div>

Just realised you are on Windows. Makefiles do not work that well on Windows ☹ Still it seems the error above comes from `go tool cover` which I would expect to exist.

What do you get if you run `go tool cover`? You should get a help output.

---

<div class="post-metadata">

**Author:** ![shweta\_chugh](https://avatars.discourse-cdn.com/v4/letter/s/c68b51/32.png) [@shweta\_chugh](https://discuss.elastic.co/u/shweta_chugh)\
**Post date:** [March 21, 2017, 6:55am UTC](https://discuss.elastic.co/t/error-creating-a-metricset/79346/4 "2017-03-21T06:55:34Z")

</div>

Yes, I get a help output.  
Attached for your reference

 ![](https://us1.discourse-cdn.com/elastic/original/3X/e/4/e4ba3aa1eba73c93210358ead1788caf80c6a2c0.png)

---

<div class="post-metadata">

**Author:** ![ruflin](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ruflin/32/3116_2.png) [@ruflin](https://discuss.elastic.co/u/ruflin)\
**Post date:** [March 21, 2017, 7:12am UTC](https://discuss.elastic.co/t/error-creating-a-metricset/79346/5 "2017-03-21T07:12:20Z")

</div>

Interesting. Did my first comment help?

What you can try otherwise, is running the Python command manually which is executed by the Makefile as I assume it is a Windows issue with the Makefile:

This is the command. You must replace the env variables with your actual values.

```auto
python ${ES_BEATS}/metricbeat/scripts/create_metricset.py --path=$(PWD) --es_beats=$(ES_BEATS) --module=$(MODULE) --metricset=$(METRICSET)

```

---

<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:** [April 18, 2017, 7:12am UTC](https://discuss.elastic.co/t/error-creating-a-metricset/79346/6 "2017-04-18T07:12:21Z")

</div>

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