# Make only has create-metricset

**URL:** <https://discuss.elastic.co/t/make-only-has-create-metricset/244515>\
**Category:** Beats\
**Tags:** metricbeat\
**Created:** [August 11, 2020, 8:47am UTC](https://discuss.elastic.co/t/make-only-has-create-metricset/244515 "2020-08-11T08:47:44Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![rJosef](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rjosef/32/72555_2.png) [@rJosef](https://discuss.elastic.co/u/rJosef)\
**Post date:** [August 11, 2020, 8:47am UTC](https://discuss.elastic.co/t/make-only-has-create-metricset/244515/1 "2020-08-11T08:47:44Z")

</div>

Make collect and make don't exist in the makefile of the current version of meticbeat.

---

<div class="post-metadata">

**Author:** ![kvch](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kvch/32/72058_2.png) [@kvch](https://discuss.elastic.co/u/kvch)\
**Post date:** [August 11, 2020, 1:58pm UTC](https://discuss.elastic.co/t/make-only-has-create-metricset/244515/2 "2020-08-11T13:58:40Z")

</div>

What do you mean by current? Master or 7.8.1?

---

<div class="post-metadata">

**Author:** ![rJosef](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rjosef/32/72555_2.png) [@rJosef](https://discuss.elastic.co/u/rJosef)\
**Post date:** [August 13, 2020, 8:18am UTC](https://discuss.elastic.co/t/make-only-has-create-metricset/244515/4 "2020-08-13T08:18:15Z")

</div>

I checked it doesn't appear in both branches.

the makefile is very short

---

<div class="post-metadata">

**Author:** ![kvch](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kvch/32/72058_2.png) [@kvch](https://discuss.elastic.co/u/kvch)\
**Post date:** [August 13, 2020, 11:49am UTC](https://discuss.elastic.co/t/make-only-has-create-metricset/244515/5 "2020-08-13T11:49:23Z")

</div>

I think you just need to update the reference to `ES_BEATS` in your makefile. Where does it point now? Are you using vendoring for dependencies? What Golang version are you using?

---

<div class="post-metadata">

**Author:** ![rJosef](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rjosef/32/72555_2.png) [@rJosef](https://discuss.elastic.co/u/rJosef)\
**Post date:** [August 18, 2020, 10:15am UTC](https://discuss.elastic.co/t/make-only-has-create-metricset/244515/6 "2020-08-18T10:15:20Z")

</div>

Tnx for your reply, I missed the email so didn't see the reply.

I have the original makefile that contains this:

```auto
ES_BEATS ?= ..

include $(ES_BEATS)/dev-tools/make/mage.mk

# Creates a new metricset. Requires the params MODULE and METRICSET

.PHONY: create-metricset

create-metricset:

mage createMetricset

```

I guess `ES_BEATS` is not pointing anywhere, what shuld it point to?  
Iv'e got go version go1.14.6 linux/amd64

I'm not sure exactly what is vendoring, but I'm using a clean branch and installation.

btw, I'm trying to cross compile on Linux for windows, since make collect wasn't working ( "make: \*\*\* No rule to make target 'collect'. Stop.") Iv'e been using `mage collectAll` in a build.sh file, but when I run it on windows I get an err `Exiting: 1 error: metricset 'system/tmp' not found`.  
Is it because I'm not using `make collect` or that is another issue?  
the is my build file content:

```auto
#!/bin/bash

mage collectAll
mage build
go build -o metricbeat_wmi main.go
GOOS=windows GOARCH=amd64 go build -o metricbeat_wmi.exe main.go

```

---

<div class="post-metadata">

**Author:** ![rJosef](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rjosef/32/72555_2.png) [@rJosef](https://discuss.elastic.co/u/rJosef)\
**Post date:** [August 20, 2020, 11:46am UTC](https://discuss.elastic.co/t/make-only-has-create-metricset/244515/7 "2020-08-20T11:46:10Z")

</div>

it ended up being a version compatibility issue, I found that certain packages are keeped in different locations for different versions.  
Thank 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:** [September 17, 2020, 1:46pm UTC](https://discuss.elastic.co/t/make-only-has-create-metricset/244515/8 "2020-09-17T13:46:17Z")

</div>

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