# Custom Metricset Based on Windows WMI

**URL:** <https://discuss.elastic.co/t/custom-metricset-based-on-windows-wmi/125686>\
**Category:** Beats\
**Tags:** metricbeat\
**Created:** [March 27, 2018, 2:26am UTC](https://discuss.elastic.co/t/custom-metricset-based-on-windows-wmi/125686 "2018-03-27T02:26:20Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![mdanner](https://avatars.discourse-cdn.com/v4/letter/m/76d3ee/32.png) [@mdanner](https://discuss.elastic.co/u/mdanner)\
**Post date:** [March 27, 2018, 2:26am UTC](https://discuss.elastic.co/t/custom-metricset-based-on-windows-wmi/125686/1 "2018-03-27T02:26:20Z")

</div>

I'd like to create a custom Metricbeat Metricset based on the Windows WMI. I've looked at the [developer guide](https://www.elastic.co/guide/en/beats/devguide/current/metricbeat-developer-guide.html), and although I'm an experienced C# developer, decided that it's a bit over my head.

All I need is a good reference implementation that I can customize with the WMI counters I need. I'm looking for a clean, crisp, well documented implementation I can use as a template.

Is such a template available?

---

<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 27, 2018, 11:45am UTC](https://discuss.elastic.co/t/custom-metricset-based-on-windows-wmi/125686/2 "2018-03-27T11:45:06Z")

</div>

If you run the generator as mentioned in the developer guide you should already get a pretty good basic structure with most of the relevant code bits. Then you can have a look at wmibeat ([https://github.com/eskibars/wmibeat](https://github.com/eskibars/wmibeat)) which has an implementation to access wmi data. Combining the two should get you pretty far.

Let us know if you hit a wall.

---

<div class="post-metadata">

**Author:** ![mdanner](https://avatars.discourse-cdn.com/v4/letter/m/76d3ee/32.png) [@mdanner](https://discuss.elastic.co/u/mdanner)\
**Post date:** [April 2, 2018, 8:40pm UTC](https://discuss.elastic.co/t/custom-metricset-based-on-windows-wmi/125686/3 "2018-04-02T20:40:45Z")

</div>

Thank you @ruflin. Very helpful!

---

<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 30, 2018, 8:40pm UTC](https://discuss.elastic.co/t/custom-metricset-based-on-windows-wmi/125686/4 "2018-04-30T20:40:54Z")

</div>

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