# Perfmon metrics on Windows

**URL:** <https://discuss.elastic.co/t/perfmon-metrics-on-windows/230539>\
**Category:** Beats\
**Created:** [April 30, 2020, 12:02pm UTC](https://discuss.elastic.co/t/perfmon-metrics-on-windows/230539 "2020-04-30T12:02:18Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Volodymyr\_Shypyguzov](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/volodymyr_shypyguzov/32/63757_2.png) [@Volodymyr\_Shypyguzov](https://discuss.elastic.co/u/Volodymyr_Shypyguzov)\
**Post date:** [April 30, 2020, 12:02pm UTC](https://discuss.elastic.co/t/perfmon-metrics-on-windows/230539/1 "2020-04-30T12:02:18Z")

</div>

Hi there, we started using metricbeat for monitoring our windows machines including MSMQ perfmon counters. When using metricbeat 7.6.2 it starts reading them just fine, but after an hour or so it compains that it cannot read counters while they are perfectly readbale using powershell. IF I restart metricbeat service in starts to read them again and then fails. After reading this topic [Could not get Windows Performance Counters since Metricbeats 7.3.0](https://discuss.elastic.co/t/could-not-get-windows-performance-counters-since-metricbeats-7-3-0/198676)  
I decided to give 7.2.1 a try and it works flawlessly for more then 24 hours.  
Our OS is Windows Server 2012 R2 and metriebeat version is 7.6.2  
COnfig looks like this:

```auto
metricbeat.modules:
- module: system
  metricsets:
  - cpu
  - memory
  - network
  - filesystem
  - diskio
  - process
  enabled: true
  period: 600s
  cpu.metrics: ["percentages", "normalized_percentages"]
  core.metrics: ["percentages"]
- module: windows
  metricsets: [perfmon]
  period: 600s
  perfmon.ignore_non_existent_counters: true
  perfmon.group_measurements_by_instance: true
  perfmon.counters:
    - instance_label: queue.name
      measurement_label: msmq.queue.size
      query: \MSMQ Queue(*)\Messages in Queue

```

---

<div class="post-metadata">

**Author:** ![jbeyer](https://avatars.discourse-cdn.com/v4/letter/j/e495f1/32.png) [@jbeyer](https://discuss.elastic.co/u/jbeyer)\
**Post date:** [April 30, 2020, 12:46pm UTC](https://discuss.elastic.co/t/perfmon-metrics-on-windows/230539/2 "2020-04-30T12:46:19Z")

</div>

Hi, I not tested the Metricbeat version 7.6.2 yet. For me the versions 7.6.0 and 7.6.1 are running fine in OS Windows Server 2012R2 and Windows Server 2016. But I configure the performance counter in the modules.d\windows.yml file. May be you try this. May be it helps.

---

<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:** [May 28, 2020, 2:46pm UTC](https://discuss.elastic.co/t/perfmon-metrics-on-windows/230539/3 "2020-05-28T14:46:35Z")

</div>

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