Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Windows Perfmon Counters Not Detected #3293

Closed
fenneh opened this issue Oct 2, 2017 · 5 comments
Closed

Windows Perfmon Counters Not Detected #3293

fenneh opened this issue Oct 2, 2017 · 5 comments
Labels
area/windows Related to windows plugins (win_eventlog, win_perf_counters, win_services)

Comments

@fenneh
Copy link

fenneh commented Oct 2, 2017

This isn't necessarily a bug - maybe an oversight.

Bug report

If Telegraf starts up before an application has started publishing its own performance counters then they are never detected and no metrics are sent. A restart of the Telegraf agent is then required.

System info:

Windows Server 2008R2, 2012R2. Telegraf 1.4.0.

Steps to reproduce:

  1. Start Telegraf Agent
  2. Start Windows App which publishes to perfmon
  3. No perfmon capture

Expected behavior:

Perfmon counters will be picked up and shipped

Actual behavior:

No perfmon counters detected

Feature Request

Either allow telegraf to reload it's config from disk on a set period or allow telegraf to re-evaluate its own config every X minutes

@andryua
Copy link

andryua commented Oct 2, 2017

Same issue on Windows 10 x64 (not for all, just for some)

c:\Program Files\telegraf>telegraf.exe -config telegraf.conf -test

  • Plugin: inputs.win_perf_counters, Collection 1
    Invalid query: '\Processor()% Idle Time'. Error: No data to return.
    Invalid query: '\Processor(
    )% Interrupt Time'. Error: No data to return.
    Invalid query: '\Processor()% Privileged Time'. Error: No data to return.
    Invalid query: '\Processor(
    )% User Time'. Error: No data to return.
    Invalid query: '\Processor()% Processor Time'. Error: No data to return.
    Invalid query: '\Processor(
    )% DPC Time'. Error: No data to return.
    Invalid query: '\LogicalDisk()% Idle Time'. Error: No data to return.
    Invalid query: '\LogicalDisk(
    )% Disk Time'. Error: No data to return.
    Invalid query: '\LogicalDisk()% Disk Read Time'. Error: No data to return.
    Invalid query: '\LogicalDisk(
    )% Disk Write Time'. Error: No data to return.
    Invalid query: '\LogicalDisk()\Current Disk Queue Length'. Error: No data to re
    turn.
    Invalid query: '\LogicalDisk(
    )% Free Space'. Error: No data to return.
    Invalid query: '\LogicalDisk()\Free Megabytes'. Error: No data to return.
    Invalid query: '\PhysicalDisk(
    )\Disk Read Bytes/sec'. Error: No data to return.

@danielnelson
Copy link
Contributor

Related pull request: #2345

@danielnelson danielnelson added the area/windows Related to windows plugins (win_eventlog, win_perf_counters, win_services) label Oct 2, 2017
@andryua
Copy link

andryua commented Oct 3, 2017

KeepAlive = true
doesn't support v 1.4.1 and nightly build too

@danielnelson
Copy link
Contributor

@fenneh @andryua This may have been addressed by #4189, would it be possible for you to retest the issue using the nightly builds?

@fenneh
Copy link
Author

fenneh commented Jul 3, 2018

Testing it out now @danielnelson - Will close the issue off if all is well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/windows Related to windows plugins (win_eventlog, win_perf_counters, win_services)
Projects
None yet
Development

No branches or pull requests

3 participants