# Custom Metric Beat Packaging Issue

**URL:** https://discuss.elastic.co/t/custom-metric-beat-packaging-issue/231348
**Category:** Beats
**Tags:** metricbeat
**Created:** [May 6, 2020, 1:28pm UTC](https://discuss.elastic.co/t/custom-metric-beat-packaging-issue/231348 "2020-05-06T13:28:56Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![nabeel\_ahmed](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nabeel_ahmed/32/65455_2.png) [@nabeel\_ahmed](https://discuss.elastic.co/u/nabeel_ahmed)
#### Post date: [May 6, 2020, 1:28pm UTC](https://discuss.elastic.co/t/custom-metric-beat-packaging-issue/231348/1 "2020-05-06T13:28:56Z")

</div>

Hello,  
I created a new beat based on metricbeat. I have followed the instructions and able to build and debug beat successfully . All works as expected.

When i try to package the beat using "make release", the generated packages doesn't have modules.d directory and respective ym file in it. Apparently all package process run smoothely

Any help would be appreciated.

Thanks!

---

<div class="post-metadata">

### Author: ![ChrsMark](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/chrsmark/32/55858_2.png) [@ChrsMark](https://discuss.elastic.co/u/ChrsMark)
#### Post date: [May 7, 2020, 8:12am UTC](https://discuss.elastic.co/t/custom-metric-beat-packaging-issue/231348/2 "2020-05-07T08:12:56Z")

</div>

Hi @nabeel_ahmed!

Do you use an updated Beat upstream?  
Since you run the process that is described in the logs, I suspect this could be a bug. I would say that you can report it with a GH issue mentioning the versions and what you see.

---

<div class="post-metadata">

### Author: ![nabeel\_ahmed](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nabeel_ahmed/32/65455_2.png) [@nabeel\_ahmed](https://discuss.elastic.co/u/nabeel_ahmed)
#### Post date: [May 7, 2020, 10:08am UTC](https://discuss.elastic.co/t/custom-metric-beat-packaging-issue/231348/3 "2020-05-07T10:08:53Z")

</div>

Hi @ChrsMark,

This is the make command to build the beat, including commit id  
go build -i -ldflags "-X [github.com/elastic/beats/v7/libbeat/version.buildTime=2020-05-07T10:07:05Z](http://github.com/elastic/beats/v7/libbeat/version.buildTime=2020-05-07T10:07:05Z) -X [github.com/elastic/beats/v7/libbeat/version.commit=f182edc387d73520e22534cc83a46b1a1a77b9ab](http://github.com/elastic/beats/v7/libbeat/version.commit=f182edc387d73520e22534cc83a46b1a1a77b9ab)"

Okay will report an issue on GH

---

<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: [June 4, 2020, 10:09am UTC](https://discuss.elastic.co/t/custom-metric-beat-packaging-issue/231348/4 "2020-06-04T10:09:01Z")

</div>

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