Unable to collect network metrics on Windows Container #5357
Closed
Description
Relevant telegraf.conf:
[[inputs.win_perf_counters.object]]
ObjectName = "Network Interface"
Instances = ["*"]
Counters = [
"Bytes Received/sec",
"Bytes Sent/sec",
"Packets Received/sec",
"Packets Sent/sec",
"Packets Received Discarded",
"Packets Outbound Discarded",
"Packets Received Errors",
"Packets Outbound Errors",
]
Measurement = "win_net"
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
PS C:\Users\Administrator> docker system info
Server Version: 18.03.1-ee-3
Plugins:
Volume: local
Network: ics l2bridge l2tunnel nat null overlay transparent
Swarm: inactive
Default Isolation: process
Operating System: Windows Server 2016 Datacenter Version 1607 (OS Build 14393.2580)
OSType: windows
Architecture: x86_64
Docker Root Dir: C:\ProgramData\docker
Debug Mode (client): false
Debug Mode (server): false
Registry: https://index.docker.io/v1/
Labels:
Experimental: false
Insecure Registries:
127.0.0.0/8
Live Restore Enabled: false
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.