2023-02-23 02:28:27 +08:00
|
|
|
# Input plugin to query Windows Management Instrumentation
|
2023-03-01 21:31:45 +08:00
|
|
|
# This plugin ONLY supports Windows
|
2023-02-23 02:28:27 +08:00
|
|
|
[[inputs.win_wmi]]
|
|
|
|
|
[[inputs.win_wmi.query]]
|
|
|
|
|
# a string representing the WMI namespace to be queried
|
|
|
|
|
namespace = "root\\cimv2"
|
|
|
|
|
# a string representing the WMI class to be queried
|
|
|
|
|
class_name = "Win32_Volume"
|
|
|
|
|
# an array of strings representing the properties of the WMI class to be queried
|
|
|
|
|
properties = ["Name", "Capacity", "FreeSpace"]
|
|
|
|
|
# a string specifying a WHERE clause to use as a filter for the WQL
|
|
|
|
|
filter = 'NOT Name LIKE "\\\\?\\%"'
|
|
|
|
|
# WMI class properties which should be considered tags instead of fields
|
|
|
|
|
tag_properties = ["Name"]
|