win_perf_counters "SMB Server Shares" and "SMB Client Shares". #5599
Labels
area/windows
Related to windows plugins (win_eventlog, win_perf_counters, win_services)
bug
unexpected problem or unintended behavior
Hello!
I have some troubles with "win_perf_counters" input plugin.
I want to collect data from "SMB Server Shares" and "SMB Client Shares".
Instance objects of this counters contain \ (backslash) in their names.
Example:
Show all available counters from measurement "SMB Client Shares":
Show all available counters from measurement "SMB Client Shares" with all instances objects:
So, command for measure specific share with specific counter instance object looks like:
And here are my problem!
Input plugin "win_perf_counters.go" has this code:
… which removes backslash from instance name!
So I finally have instance looks like "ServerName.DomainNameShareName" instead of "\ServerName.DomainName\ShareName"
May be it will be more correct don't remove characters such as \ (backslash) ?
For example: replace them by - (dash) or _ (bottom dash) ?
Also, "/sec" replaced with "_persec" automatically.
But what about "/Request", "/Write" or "/Read" ?
For each of this counters I need to use "processors.rename.replace"
Also there are counters which ends with dot (Example: "Avg. *").
What about them?
Thank you!
The text was updated successfully, but these errors were encountered: