# About creating a metricset issue

**URL:** <https://discuss.elastic.co/t/about-creating-a-metricset-issue/71464>\
**Category:** Beats\
**Tags:** metricbeat\
**Created:** [January 13, 2017, 4:01am UTC](https://discuss.elastic.co/t/about-creating-a-metricset-issue/71464 "2017-01-13T04:01:03Z")\
**Posts on this page:** 16\
**Page:** 1

<div class="post-metadata">

**Author:** ![Pikachu\_TEX](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/pikachu_tex/32/14531_2.png) [@Pikachu\_TEX](https://discuss.elastic.co/u/Pikachu_TEX)\
**Post date:** [January 13, 2017, 4:01am UTC](https://discuss.elastic.co/t/about-creating-a-metricset-issue/71464/1 "2017-01-13T04:01:03Z")

</div>

i refer to metricbeat document

Run the following command inside my beat directory:  
#make create-metricset

The results are as follows:

[elk@oam2 metricbeat-5.0.1-linux-x86\_64]$ make create-metricset  
make: \*\*\* No rule to make target `create-metricset'. Stop.

How to solve this problem?

---

<div class="post-metadata">

**Author:** ![maddin2016](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/maddin2016/32/16599_2.png) [@maddin2016](https://discuss.elastic.co/u/maddin2016)\
**Post date:** [January 13, 2017, 12:48pm UTC](https://discuss.elastic.co/t/about-creating-a-metricset-issue/71464/2 "2017-01-13T12:48:59Z")

</div>

Do you have call `make-setup` before? It should rather ask you to create a metricbeat module and and a metricset. See [here](https://www.elastic.co/guide/en/beats/metricbeat/current/creating-beat-from-metricbeat.html#_step_3_init_and_create_the_metricset) for further informations.

---

<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:** [January 15, 2017, 8:18pm UTC](https://discuss.elastic.co/t/about-creating-a-metricset-issue/71464/3 "2017-01-15T20:18:34Z")

</div>

Did you download the beats source code or a binary package?

---

<div class="post-metadata">

**Author:** ![Pikachu\_TEX](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/pikachu_tex/32/14531_2.png) [@Pikachu\_TEX](https://discuss.elastic.co/u/Pikachu_TEX)\
**Post date:** [January 16, 2017, 1:54am UTC](https://discuss.elastic.co/t/about-creating-a-metricset-issue/71464/4 "2017-01-16T01:54:56Z")

</div>

thx! i try today

---

<div class="post-metadata">

**Author:** ![Pikachu\_TEX](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/pikachu_tex/32/14531_2.png) [@Pikachu\_TEX](https://discuss.elastic.co/u/Pikachu_TEX)\
**Post date:** [January 16, 2017, 10:15am UTC](https://discuss.elastic.co/t/about-creating-a-metricset-issue/71464/5 "2017-01-16T10:15:20Z")

</div>

![](https://us1.discourse-cdn.com/elastic/original/2X/9/92f2a7cdfe814992d84307a06e0f5bcb67a8dd44.png)

i am newbee. please tell me where is wrong. THX 😃 Orz

I have already installed golang python virtualenv cookiecutter

---

<div class="post-metadata">

**Author:** ![maddin2016](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/maddin2016/32/16599_2.png) [@maddin2016](https://discuss.elastic.co/u/maddin2016)\
**Post date:** [January 16, 2017, 2:48pm UTC](https://discuss.elastic.co/t/about-creating-a-metricset-issue/71464/6 "2017-01-16T14:48:19Z")

</div>

Hi @Pikachu_TEX, you have to install git on your machine.

---

<div class="post-metadata">

**Author:** ![Pikachu\_TEX](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/pikachu_tex/32/14531_2.png) [@Pikachu\_TEX](https://discuss.elastic.co/u/Pikachu_TEX)\
**Post date:** [January 17, 2017, 3:36am UTC](https://discuss.elastic.co/t/about-creating-a-metricset-issue/71464/7 "2017-01-17T03:36:29Z")

</div>

Hi i want ask some question 😃  
Now i already get the metricbeat source code. then i creat the beat

 ![](https://us1.discourse-cdn.com/elastic/original/2X/7/77da231d624eaca8c8ab9a7dcbd4ad9ed1cb75d4.png) thats no problem. follow the doc ,Step 3 - Init and create the metricset i run make setup  
 ![](https://us1.discourse-cdn.com/elastic/original/2X/0/0ced6e4764bf4d1780e7915b6720891ff6a6eb02.png) ![](https://us1.discourse-cdn.com/elastic/original/2X/3/364ab4f649b50cad4cb3c80bf7893fe0777a4fe9.png) I do not know if this is right or wrong 😂 isee the docs about creating a metricset。  
then run make collect & make ![](https://us1.discourse-cdn.com/elastic/original/2X/9/9df2c4f222145f441e2678ab216876ab57c5bb6f.png) so i would like to ask,where is wrong? 😓 plz teach me , Master!

---

<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:** [January 17, 2017, 10:21am UTC](https://discuss.elastic.co/t/about-creating-a-metricset-issue/71464/8 "2017-01-17T10:21:03Z")

</div>

I think your beat was not copied to the correct GOPATH: [https://github.com/golang/go/wiki/GOPATH](https://github.com/golang/go/wiki/GOPATH)

Please do not share log output as screenshots. This is very hard to read and impossible to search. Use a gist for that and link it here.

---

<div class="post-metadata">

**Author:** ![Pikachu\_TEX](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/pikachu_tex/32/14531_2.png) [@Pikachu\_TEX](https://discuss.elastic.co/u/Pikachu_TEX)\
**Post date:** [January 17, 2017, 3:26pm UTC](https://discuss.elastic.co/t/about-creating-a-metricset-issue/71464/9 "2017-01-17T15:26:06Z")

</div>

HI ! this is my GOLANG export :  
#export GOROOT=/usr/local/go  
#export GOBIN=$GOROOT/bin  
#export PATH=$PATH:$GOBIN  
#export GOPATH=/mnt/wwwroot/gofile

then i refer the doc

 ![](https://us1.discourse-cdn.com/elastic/original/2X/c/cf699b68c6252cdcca4c97403173b656ff0f3afa.png)  
#cd /mnt/wwwroot/gofile/src/github.com/elastic/  
and run command #go get [github.com/elastic/beats/metricbeat](http://github.com/elastic/beats/metricbeat)  
And then generate the file ![](https://us1.discourse-cdn.com/elastic/original/2X/d/d521f7b344d034490b27714600299e0ce3a1ceaa.png)  
Is this right??😮

---

<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:** [January 18, 2017, 12:41pm UTC](https://discuss.elastic.co/t/about-creating-a-metricset-issue/71464/10 "2017-01-18T12:41:18Z")

</div>

Looks ok. But which path are you in when you do `ls`. NO screenshots please ☹

---

<div class="post-metadata">

**Author:** ![Pikachu\_TEX](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/pikachu_tex/32/14531_2.png) [@Pikachu\_TEX](https://discuss.elastic.co/u/Pikachu_TEX)\
**Post date:** [January 19, 2017, 1:52am UTC](https://discuss.elastic.co/t/about-creating-a-metricset-issue/71464/11 "2017-01-19T01:52:28Z")

</div>

Oh, sorry 😂 ![](https://us1.discourse-cdn.com/elastic/original/2X/9/971cf1bd57094e014bb1273c36399598eeabcfd1.png)  
Is this right?😮

---

<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:** [January 19, 2017, 9:43am UTC](https://discuss.elastic.co/t/about-creating-a-metricset-issue/71464/12 "2017-01-19T09:43:34Z")

</div>

Did you just post a screenshot again?

Run the command `pwd` and post the output as text.

Can you perhaps elaborate on what metricset you plan to create?

---

<div class="post-metadata">

**Author:** ![Pikachu\_TEX](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/pikachu_tex/32/14531_2.png) [@Pikachu\_TEX](https://discuss.elastic.co/u/Pikachu_TEX)\
**Post date:** [January 19, 2017, 9:58am UTC](https://discuss.elastic.co/t/about-creating-a-metricset-issue/71464/13 "2017-01-19T09:58:22Z")

</div>

![](https://us1.discourse-cdn.com/elastic/original/2X/5/577e2e1c741fc7815ea07fb951ff4f1c08198594.png)

En.. I just want to monitor Oracle weblogic with metricbeat. ... create a weblogic module but no detailed references found 😓

---

<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:** [January 19, 2017, 10:17am UTC](https://discuss.elastic.co/t/about-creating-a-metricset-issue/71464/14 "2017-01-19T10:17:02Z")

</div>

@Pikachu_TEX What is it with your screenshots? Can you please stop doing that?

You seem to be in the elastic directory. Now doing `cd beats/metricbeat` should bring you to the metricbeat directory. There you can run `make create-metricset` and start the development.

---

<div class="post-metadata">

**Author:** ![Pikachu\_TEX](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/pikachu_tex/32/14531_2.png) [@Pikachu\_TEX](https://discuss.elastic.co/u/Pikachu_TEX)\
**Post date:** [January 19, 2017, 3:28pm UTC](https://discuss.elastic.co/t/about-creating-a-metricset-issue/71464/15 "2017-01-19T15:28:19Z")

</div>

sorry i learn ELK was not for long 😓  
As your said, I seem to know how to do it.  
if encounter problems again， i will ask you 🙂

---

<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:** [February 16, 2017, 3:28pm UTC](https://discuss.elastic.co/t/about-creating-a-metricset-issue/71464/16 "2017-02-16T15:28:26Z")

</div>

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