diff --git a/plugins/inputs/win_perf_counters/README.md b/plugins/inputs/win_perf_counters/README.md index 3d3b167686203..15d6363d44cca 100644 --- a/plugins/inputs/win_perf_counters/README.md +++ b/plugins/inputs/win_perf_counters/README.md @@ -87,7 +87,7 @@ Example: #### PreVistaSupport -(Deprecated. Necessary features on Windows Vista and newer are checked dynamically) +(Deprecated in 1.7; Necessary features on Windows Vista and newer are checked dynamically) Bool, if set to `true`, the plugin will use the localized PerfCounter interface that has been present since before Vista for backwards compatibility. diff --git a/plugins/inputs/win_perf_counters/win_perf_counters.go b/plugins/inputs/win_perf_counters/win_perf_counters.go index 9cf45a256aa04..4effb3bc0c5fd 100644 --- a/plugins/inputs/win_perf_counters/win_perf_counters.go +++ b/plugins/inputs/win_perf_counters/win_perf_counters.go @@ -150,9 +150,8 @@ var sampleConfig = ` ` type Win_PerfCounters struct { - PrintValid bool - //deprecated: determined dynamically - PreVistaSupport bool + PrintValid bool `toml:"PrintValid"` + PreVistaSupport bool `toml:"PreVistaSupport" deprecated:"1.7.0;determined dynamically"` UsePerfCounterTime bool Object []perfobject CountersRefreshInterval config.Duration