# What is a better option? Creating a Metric Set or Create a new beat

**URL:** https://discuss.elastic.co/t/what-is-a-better-option-creating-a-metric-set-or-create-a-new-beat/225999
**Category:** Beats
**Tags:** beats-module, metricbeat
**Created:** [April 1, 2020, 7:54am UTC](https://discuss.elastic.co/t/what-is-a-better-option-creating-a-metric-set-or-create-a-new-beat/225999 "2020-04-01T07:54:39Z")
**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: [April 1, 2020, 7:54am UTC](https://discuss.elastic.co/t/what-is-a-better-option-creating-a-metric-set-or-create-a-new-beat/225999/1 "2020-04-01T07:54:39Z")

</div>

Hi,

The documentation regarding extending Metric beat is quite confusion. Both looks like the same:

- Extend Metricbeat directly
- Create your own Beat and use Metricbeat as a library

The situation is, I want to get metrics from **openvpn** , and i am using metric beat for system and network modules.

So what would be the better option for openvpn,

1. Creating a new metric set
2. Creating a new beat and use metricbeat as a libraray

Any suggestions and thoughts would be appreciated!

---

<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: [April 1, 2020, 9:56am UTC](https://discuss.elastic.co/t/what-is-a-better-option-creating-a-metric-set-or-create-a-new-beat/225999/2 "2020-04-01T09:56:42Z")

</div>

Hey!

Commenting on each option:

1. Extend Metricbeat directly:  
Going this way you can contribute your module to the upstream project and have it officially maintained by project maintainers. This means that you will be able to use along with latest features etc while you will have contributed back to the community.
2. Create your own custom Beat:  
With this option you will be the only maintainer of the project. Of course this custom Beat could be mentioned in a [list of custom Beats](https://www.elastic.co/guide/en/beats/libbeat/current/community-beats.html) that are mentioned but not maintained by Elastic.

I have developed Beats in both ways and technically the process is quite similar. The only thing that you should have in mind is that making your Beat part of the upstream project could take ore time because of the reviews and the changes that it will may require so as to follow the project's guidelines, while on the custom Beat you will be the one to set the guidelines.

So it's up to you with which way you will go with.

Regards!

---

<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: [April 1, 2020, 10:21am UTC](https://discuss.elastic.co/t/what-is-a-better-option-creating-a-metric-set-or-create-a-new-beat/225999/3 "2020-04-01T10:21:17Z")

</div>

okay, Thanks for explaining in detail.

---

<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 29, 2020, 10:21am UTC](https://discuss.elastic.co/t/what-is-a-better-option-creating-a-metric-set-or-create-a-new-beat/225999/4 "2020-04-29T10:21:26Z")

</div>

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