Cette page n'est pas encore disponible en français, sa traduction est en cours. Si vous avez des questions ou des retours sur notre projet de traduction actuel, n'hésitez pas à nous contacter.
Datadog’s WMI integration is a versatile approach to collecting relevant metrics from your Windows environments. As long as you’re able to query a WMI object for a numerical value, you can configure your dd-agent’s WMI check to run the same query and collect its results as a metric. See the retrieving WMI metrics guide.
But sometimes the default WMI counters aren’t sufficient for specific use-cases –in those cases, you can create your own custom WMI counters for the dd-agent to query. Here’s a simple example of a powershell script that would create a custom WMI counter:
If then I wanted to collect that “TestNameType” value as a metric called “wmi.testnametype.count”, I could add this to my wmi_check.yaml configuration: