# Diskstat Windows - Could not return any performance counter

**URL:** <https://discuss.elastic.co/t/diskstat-windows-could-not-return-any-performance-counter/378033>\
**Category:** Elastic Agent\
**Tags:** metricbeat\
**Created:** [May 12, 2025, 9:33am UTC](https://discuss.elastic.co/t/diskstat-windows-could-not-return-any-performance-counter/378033 "2025-05-12T09:33:29Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![dot-mike](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dot-mike/32/143339_2.png) [@dot-mike](https://discuss.elastic.co/u/dot-mike)\
**Post date:** [May 12, 2025, 9:33am UTC](https://discuss.elastic.co/t/diskstat-windows-could-not-return-any-performance-counter/378033/1 "2025-05-12T09:33:29Z")

</div>

Hi,

I'm seeing many errors for Diskstat Windows with the error message `Could not return any performance counter values for \\.\K: .Error: Incorrect function.`

I'm using Elastic Agent with Windows integration. My question is: Is there a way for me to add config (In kibana agent config) to ignore disk io stat for K-drive? This is a special device that does not support these metrics.

I don't see an option for "additional yaml" or similar

Many thanks!

---

<div class="post-metadata">

**Author:** ![dot-mike](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dot-mike/32/143339_2.png) [@dot-mike](https://discuss.elastic.co/u/dot-mike)\
**Post date:** [June 6, 2025, 5:51pm UTC](https://discuss.elastic.co/t/diskstat-windows-could-not-return-any-performance-counter/378033/3 "2025-06-06T17:51:09Z")

</div>

Solved. Add these two types in the field `List of filesystem types to ignore`

- unavailable
- unknown

As options to the integration for system under: Collect metrics from System instances :

- System filesystem metrics
- System fsstat metrics

---

<div class="post-metadata">

**Author:** ![stephenb](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/stephenb/32/40856_2.png) [@stephenb](https://discuss.elastic.co/u/stephenb)\
**Post date:** [June 6, 2025, 7:24pm UTC](https://discuss.elastic.co/t/diskstat-windows-could-not-return-any-performance-counter/378033/4 "2025-06-06T19:24:37Z")

</div>

@dot-mike Nicely Done!
