DataDog/dd-agent — pull request #1253 by rlaveycal (2014-12-17 16:57:27+00:00)
Title: Extended tagging for related class & constants

We run many instances of the same executable. We want to be able to tag our process metrics with the command line params fed to each instance to be able to better identify them. The command line isn't available on the Win32_PerfFormattedData_PerfProc_Process class but is on Win32_Process.

I've extended the WMI check to "join" these classes together (via config) to allow this tagging. I also suppress the "#instance" number appended to the process name by WMI.

Secondly we want to attach some fixed tags to metrics. An extra property has been added to support this.

See wmi_check.yaml.example comments for details