-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
Unable to collect network metrics on Windows Container #5357
Comments
I'm confused why it's complaining that the data is valid. Do you know a way to get that raw performance counter data to determine if there's something blatantly obvious about it and it's a bad error string? |
@TerraVenil I've never attempted this myself, could you try running the equivalent typeperf command in the container? Search the full name of the counter:
Get the counter for a specific instance:
|
Hi, @danielnelson. \Per Processor Network Interface Card Activity(_Total)\Packets Coalesced/sec
|
What does this command return?
|
Hi, @danielnelson. @glinton please accept my apologies I added additional backslash at the end when executing command inside container.
Also I was trying to reproduce current issue on Docker Desktop for Windows.
Inside Windows Container
I have suggestion that issue can be related to specific of hosting different container types with Hyper-V isolation and inside the Process. |
So, in summary, this performance counter does not seem to be available on docker-ee running on Windows Server 2016 Datacenter, but is available on docker-ce on Windows 10 Pro? Could you try running the
|
Exactly.
Is that output you are expected or I should also rebuild the counters as well? |
That looks correct, no need to rebuild the counters. At this point I feel like it is an issue that should be reported to Docker Enterprise Edition about performance counter support in containers. Would you be able to make a support request https://docs.docker.com/ee/get-support/ showing the various results and in particular this result:
|
Hi, Going through old issues, this one appears to be Windows-related rather than Telegraf related. I am going to go ahead and close this one as there isn't an action for Telegraf at this time. If you disagree or have additional info that shows how Telegraf could make changes here, please do feel free to add more details. Thanks |
Relevant telegraf.conf:
System info:
Windows Container
Telegraf is running as a Windows Service.
PS C:\Program Files\Telegraf> .\telegraf.exe version
Telegraf 1.9.1 (git: HEAD 20636091)
Windows Docker Host
Expected behavior:
win_net measurement should be collected by Telegraf.
Actual behavior:
[inputs.win_perf_counters]: Error in plugin: error while getting value for counter \Network Interface(*)\Bytes Received/sec: The returned data is valid.
The text was updated successfully, but these errors were encountered: