A custom check that allows to read registry keys and provide custom metrics from it
Copy the python script in the checks.d
folder and the yaml file in the conf.d
of the Datadog config hierarchy (typically in %PROGRAMDATA%\Datadog
).
The resulting hierarchy should be:
%PROGRAMDATA%\Datadog
├── checks.d
│ └── custom_win_reg.py
└── conf.d
└── custom_win_reg.yaml
See the custom check documentation for more information.
Install the library winregistry using the below command:
& "$env:ProgramFiles\Datadog\Datadog Agent\embedded3\python" -m pip install winregistry
The conf.yaml file should be placed under the conf.d folder in the Datadog config hierarchy.
Configuration example
- registry_key: ssl3.client
min_collection_interval: 120
key_path: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols\SSL\ 3.0\Client
key_name: Enabled
metric_name: win.registry.ssl3.client.enabled
tags:
- tag1:'string'
- tag2:'25'
& "$env:ProgramFiles\Datadog\Datadog Agent\bin\agent.exe" launch-gui
& "$env:ProgramFiles\Datadog\Datadog Agent\bin\agent.exe" status