# Metricbeat - no counter paths were found

**URL:** <https://discuss.elastic.co/t/metricbeat-no-counter-paths-were-found/270166>\
**Category:** Beats\
**Tags:** metricbeat\
**Created:** [April 15, 2021, 2:25am UTC](https://discuss.elastic.co/t/metricbeat-no-counter-paths-were-found/270166 "2021-04-15T02:25:43Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Inammathe\_Inna](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/inammathe_inna/32/40656_2.png) [@Inammathe\_Inna](https://discuss.elastic.co/u/Inammathe_Inna)\
**Post date:** [April 15, 2021, 2:25am UTC](https://discuss.elastic.co/t/metricbeat-no-counter-paths-were-found/270166/1 "2021-04-15T02:25:43Z")

</div>

Hi,

Periodically, we are finding our Windows servers stop sending perfmon metrics (other metrics e.g. cpu from the system module) continue just fine.

The current workaround that gets them going again is restarting the metricbeat service.

**details**  
metricbeat version 7.9.2 (amd64), libbeat 7.9.2 [2ab907f5ccecf9fd82fe37105082e89fd871f684 built 2020-09-22 23:25:16 +0000 UTC]

**Example log entries:**

```auto
2021-03-13T23:36:24.015+1000 ERROR [perfmon] perfmon/perfmon.go:64 no counter paths were found
2021-03-13T23:36:24.015+1000 INFO module/wrapper.go:259 Error fetching data for metricset windows.perfmon: failed reading counters: failed collecting counter values: No data to return.
2021-03-13T23:36:34.015+1000 ERROR [perfmon] perfmon/perfmon.go:64 no counter paths were found
2021-03-13T23:36:34.015+1000 INFO module/wrapper.go:259 Error fetching data for metricset windows.perfmon: failed reading counters: failed collecting counter values: No data to return.
2021-03-13T23:36:44.016+1000 ERROR [perfmon] perfmon/perfmon.go:64 no counter paths were found
2021-03-13T23:36:44.016+1000 INFO module/wrapper.go:259 Error fetching data for metricset windows.perfmon: failed reading counters: failed collecting counter values: No data to return.
2021-03-13T23:36:53.248+1000 INFO [monitoring] log/log.go:145 Non-zero metrics in the last 30s {"monitoring": {"metrics": {"beat":{"cpu":{"system":{"ticks":4131515,"time":{"ms":344}},"total":{"ticks":6892108,"time":{"ms"
:469},"value":6892108},"user":{"ticks":2760593,"time":{"ms":125}}},"handles":{"open":387},"info":{"ephemeral_id":"939d67d4-fca9-4757-ac74-88cab028ff12","uptime":{"ms":669242075}},"memstats":{"gc_next":23646592,"memory_alloc":13672448,"me
mory_total":146326614688,"rss":8192},"runtime":{"goroutines":69}},"libbeat":{"config":{"module":{"running":4}},"output":{"events":{"acked":48,"batches":6,"total":48}},"pipeline":{"clients":9,"events":{"active":0,"published":48,"total":48
},"queue":{"acked":48}}},"metricbeat":{"system":{"cpu":{"events":3,"success":3},"memory":{"events":3,"success":3},"network":{"events":9,"success":9},"process":{"events":24,"success":24},"process_summary":{"events":3,"success":3},"socket_
summary":{"events":3,"success":3}},"windows":{"perfmon":{"events":3,"failures":3}}}}}}

```

**Configuration**

```auto
- module: system
  period: 10s
  metricsets:
    - cpu
    - memory
    - network
    - process
    - process_summary
    - socket_summary
  process.include_top_n:
    by_cpu: 5
    by_memory: 5

- module: system
  period: 15m
  metricsets:
    - uptime

- module: windows
  metricsets: ["service"]
  enabled: true
  period: 60s

- module: windows
  metricsets: [perfmon]
  period: 10s
  perfmon.ignore_non_existent_counters: true
  perfmon.group_measurements_by_instance: true
  perfmon.queries:
    - object: "ServiceModelService 4.0.0.0"
      instance: ["*"]
      counters:
      - name: "Calls"
        field: ServiceModelService_Calls
      - name: "Calls Per Second"
        field: ServiceModelService_Calls.per_sec
      - name: "Calls Outstanding"
        field: "ServiceModelService_Calls.outstanding"
      - name: "Calls Failed"
        field: "ServiceModelService_Calls.failed"
      - name: "Calls Failed Per Second"
        field: "ServiceModelService_Calls.failed.per_sec"
      - name: "Calls Faulted"
        field: "ServiceModelService_Calls.faulted"
      - name: "Calls Duration"
        field: "ServiceModelService_Calls.duration"
      - name: "Instances"
        field: "ServiceModelService_Instances"
      - name: "Instances Created Per Second"
        field: "ServiceModelService_Instances.per_sec"
      - name: "Percent Of Max Concurrent Calls"
        field: "ServiceModelService_MaxConcurrent.calls.pct"
      - name: "Percent Of Max Concurrent Instances"
        field: "ServiceModelService_MaxConcurrent.instances.pct"
      - name: "Percent Of Max Concurrent Sessions"
        field: "ServiceModelService_MaxConcurrent.sessions.pct"
    - object: ".NET Data Provider for SqlServer"
      instance: ["*"]
      counters:
      - name: "NumberOfActiveConnections"
        field: SqlServer_NumberOfActiveConnections
      - name: "NumberOfPooledConnections"
        field: SqlServer_NumberOfPooledConnections

```

Thank you!

---

<div class="post-metadata">

**Author:** ![MarianaD](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/marianad/32/42687_2.png) [@MarianaD](https://discuss.elastic.co/u/MarianaD)\
**Post date:** [April 21, 2021, 8:42am UTC](https://discuss.elastic.co/t/metricbeat-no-counter-paths-were-found/270166/2 "2021-04-21T08:42:59Z")

</div>

hi @Inammathe_Inna can you enable debug logging level in `metricbeat.yml` and provide us with the info. Maybe the debug logs will tell us more.

---

<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 19, 2021, 10:43am UTC](https://discuss.elastic.co/t/metricbeat-no-counter-paths-were-found/270166/3 "2021-05-19T10:43:29Z")

</div>

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