# Inputs.win\_perf\_counters.object - sends one counter

**URL:** <https://community.influxdata.com/t/inputs-win-perf-counters-object-sends-one-counter/905>\
**Category:** Telegraf\
**Tags:** telegraf\
**Created:** [May 11, 2017, 8:43pm UTC](https://community.influxdata.com/t/inputs-win-perf-counters-object-sends-one-counter/905 "2017-05-11T20:43:18Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![hcrocker](https://avatars.discourse-cdn.com/v4/letter/h/aeb1de/32.png) [@hcrocker](https://community.influxdata.com/u/hcrocker)\
**Post date:** [May 11, 2017, 8:43pm UTC](https://community.influxdata.com/t/inputs-win-perf-counters-object-sends-one-counter/905/1 "2017-05-11T20:43:18Z")

</div>

[[inputs.win\_perf\_counters.object]]  
ObjectName = “LogicalDisk"  
Instances = [”\*"]  
Counters = [  
“Free Megabytes”,  
"% Free Space",  
]

Using the above configuration, the telegraf sends two message with one counter each. I expected one message with two counter values.

win\_disk,host=WIN-GVVTNU0V3TV,item\_identifier=2709:2569,category=agility-vm,interval=30s,instance=C:,objectname=LogicalDisk Free\_Megabytes=45317 1494533452000000000

win\_disk,interval=30s,host=WIN-GVVTNU0V3TV,item\_identifier=2709:2569,category=agility-vm,instance=C:,objectname=LogicalDisk Percent\_Free\_Space=74.18435668945312 1494533485000000000

Anyone using this and seeing this?

---

<div class="post-metadata">

**Author:** ![bj2001holt](https://avatars.discourse-cdn.com/v4/letter/b/8e8cbc/32.png) [@bj2001holt](https://community.influxdata.com/u/bj2001holt)\
**Post date:** [June 7, 2017, 6:08pm UTC](https://community.influxdata.com/t/inputs-win-perf-counters-object-sends-one-counter/905/2 "2017-06-07T18:08:29Z")

</div>

YES!

I thought I was losing my mind with this. For every collection interval I see only one counter collected within each inputs.win\_perf\_counters.object. This behavior is really bad with the Physical Disk Object with its 8 default and useful counters. I cant correlate spikes in queue length with read/write IO or rates.

Should telegraf be collecting all of them with each interval? Or is there a setting I am missing. I am running Influx and Grafana on CentOS 7, telegraf on Windows Server 2012. I have tested and confirmed this behavior on v1.3.1 along with 1.0.0 beta3.

---

<div class="post-metadata">

**Author:** ![jackzampolin](https://sea1.discourse-cdn.com/flex023/user_avatar/community.influxdata.com/jackzampolin/32/5_2.png) [@jackzampolin](https://community.influxdata.com/u/jackzampolin)\
**Post date:** [June 7, 2017, 6:19pm UTC](https://community.influxdata.com/t/inputs-win-perf-counters-object-sends-one-counter/905/3 "2017-06-07T18:19:26Z")

</div>

@bj2001holt This sounds like an issue. Can you [open an issue](https://github.com/influxdata/telegraf/issues/new) on telegraf? Sorry for not getting back sooner, I’m not a Windows user so I can’t really answer! 🙊

---

<div class="post-metadata">

**Author:** ![bj2001holt](https://avatars.discourse-cdn.com/v4/letter/b/8e8cbc/32.png) [@bj2001holt](https://community.influxdata.com/u/bj2001holt)\
**Post date:** [June 7, 2017, 6:34pm UTC](https://community.influxdata.com/t/inputs-win-perf-counters-object-sends-one-counter/905/4 "2017-06-07T18:34:31Z")

</div>

> [@bj2001holt](#):
>
> 1.3.1

Opened the issue, thanks!

> <https://github.com/influxdata/telegraf/issues/2895>
>
> \## Bug report
> When using an "inputs.win\_perf\_counters.object" where you are col…lecting multiple counters you will only see a single counter collected at each interval. For example, the PhysicalDisk Object collects 8 counters, however it only collects one of them per interval. This removes the ability to correlate performance data.
> 
> \### Relevant telegraf.conf:
> 
> \[agent\]
> interval = "5s"
> round\_interval = true
> metric\_buffer\_limit = 1000
> flush\_buffer\_when\_full = true
> flush\_interval = "5s"
> flush\_jitter = "0s"
> 
> \[\[outputs.influxdb\]\]
> precision = "s"
> 
> \[\[inputs.win\_perf\_counters.object\]\]
> ObjectName = "PhysicalDisk"
> Instances = \["\*"\]
> Counters = \[
> "Disk Read Bytes/sec",
> "Disk Write Bytes/sec",
> "Current Disk Queue Length",
> "Disk Reads/sec",
> "Disk Writes/sec",
> "% Disk Time",
> "% Disk Read Time",
> "% Disk Write Time",
> \]
> Measurement = "win\_diskio"
> 
> 
> \### System info:
> 
> Influx and Grafana on CentOS 7, telegraf on Windows Server 2012. Tested with telegraf version 1.3.1 and 1.0.0 beta 3. 
> 
> \### Steps to reproduce:
> 
> 1. Install telegraf on windows system using default win\_perf\_counters 
> 2. From Influx query
> SELECT Current\_Disk\_Queue\_Length as "C: Current Queue Length", Disk\_Reads\_persec as "C: Read/Sec", Disk\_Writes\_persec as "C: Writes/Sec" FROM "win\_diskio" WHERE "host" = '\<removed\>' AND "instance" = '0 C:'
> 
> \### Expected behavior:
> All counters should be collected with every interval
> 
> \### Actual behavior:
> One counter is collected in each interval
