Skip to content

Commit e35528b

Browse files
Update wmi.md
1 parent 68f7253 commit e35528b

File tree

1 file changed

+8
-12
lines changed

1 file changed

+8
-12
lines changed

content/integrations/wmi.md

Lines changed: 8 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -68,18 +68,9 @@ If the metric isn't showing up in WMI, try running `winmgmt /resyncperf` to forc
6868

6969
## Configuration Options
7070

71-
Each WMI query has 2 required options, `class` and `metrics` and six optional options, `host`, `namespace`, `filters`, `tag_by`, `constant_tags` and `tag_queries`.
71+
Each WMI query has 2 required options, `class` and `metrics` and six optional options, `host`, `namespace`, `filters`, `provider`, `tag_by`, `constant_tags` and `tag_queries`.
7272

73-
`host` is the optional target of the WMI query, `localhost` is assumed by default. If you set this option, make sure that Remote Management is enabled on the target host [see here](https://technet.microsoft.com/en-us/library/Hh921475.aspx) for more information.
74-
75-
`class` is the name of the WMI class, for example `Win32_OperatingSystem` or `Win32_PerfFormattedData_PerfProc_Process`. You can find many of the standard class names on the [MSDN docs](http://msdn.microsoft.com/en-us/library/windows/desktop/aa394084.aspx).
76-
77-
The `Win32_FormattedData_*` classes provide many useful performance counters by default.
78-
79-
`namespace` is the optionnal WMI namespace to connect to (default to `cimv2`).
80-
81-
`provider` is the optional WMI provider (default to `32` on Datadog Agent 32-bit or `64`). It is used to request WMI data from the non-default provider. Available options are: `32` or `64`.
82-
See [MSDN](https://msdn.microsoft.com/en-us/library/aa393067.aspx) for more information.
73+
`class` is the name of the WMI class, for example `Win32_OperatingSystem` or `Win32_PerfFormattedData_PerfProc_Process`. You can find many of the standard class names on the [MSDN docs](http://msdn.microsoft.com/en-us/library/windows/desktop/aa394084.aspx). The `Win32_FormattedData_*` classes provide many useful performance counters by default.
8374

8475
`metrics` is a list of metrics you want to capture, with each item in the
8576
list being a set of [WMI property name, metric name, metric type].
@@ -92,9 +83,14 @@ list being a set of [WMI property name, metric name, metric type].
9283

9384
- The metric type is from the standard choices for all agent checks, such as gauge, rate, histogram or counter.
9485

86+
`host` is the optional target of the WMI query, `localhost` is assumed by default. If you set this option, make sure that Remote Management is enabled on the target host [see here](https://technet.microsoft.com/en-us/library/Hh921475.aspx) for more information.
87+
88+
`namespace` is the optionnal WMI namespace to connect to (default to `cimv2`).
89+
9590
`filters` is a list of filters on the WMI query you may want. For example, for a process-based WMI class you may want metrics for only certain processes running on your machine, so you could add a filter for each process name. You can also use the '%' character as a wildcard.
9691

97-
See below for examples.
92+
`provider` is the optional WMI provider (default to `32` on Datadog Agent 32-bit or `64`). It is used to request WMI data from the non-default provider. Available options are: `32` or `64`.
93+
See [MSDN](https://msdn.microsoft.com/en-us/library/aa393067.aspx) for more information.
9894

9995
`tag_by` optionally lets you tag each metric with a property from the WMI class you're using. This is only useful when you will have multiple values for your WMI query. The examples below show how you can tag your process metrics with the process name (giving a tag of "name:app_name").
10096

0 commit comments

Comments
 (0)