Active Directory Domain Services receiver
The Active Directory Domain Services receiver scrapes metrics relating to an Active Directory domain controller using the Windows Performance Counters.
Deploy the collector
See Install the Collector for Windows with the installer script.
Configure the receiver
Edit your OpenTelemetry Collector configuration file as follows.
Add
active_directory_dsto thereceiverssection of your configuration file.The following settings are optional:
collection_interval.10sby default. Sets the interval this receiver collects metrics on.This value must be a string readable by Golang's
time.ParseDuration. Learn more at Go's official documentation ParseDuration function .Valid time units are
ns,us(orµs),ms,s,m,h
initial_delay.1sby default. Determines how long this receiver waits before collecting metrics for the first time.
Example:
receivers: active_directory_ds: collection_interval: 10sConfigure other settings.
Include the receiver in the
metricspipeline of theservicesection of your configuration file:service: pipelines: metrics: receivers: [active_directory_ds]
Restart the collector
To apply your configuration changes, restart the collector. The command to restart the Splunk Distribution of the OpenTelemetry Collector varies depending on what platform you deployed it on and what tool you used to deploy it, but here are general examples of the restart command:
-
sudo systemctl restart splunk-otel-collector -
Windows with installer script:
stop-service splunk-otel-collector start-service splunk-otel-collector -
sudo systemctl restart splunk-otel-collector
Settings
The following table shows the configuration options for the Active Directory Domain Services receiver:
included
https://raw.githubusercontent.com/splunk/collector-config-tools/main/cfg-metadata/receiver/active_directory_ds.yaml