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:
YAMLreceivers: active_directory_ds: collection_interval: 10s -
-
Configure other settings.
-
Include the receiver in the
metricspipeline of theservicesection of your configuration file:YAMLservice: pipelines: metrics: receivers: [active_directory_ds]
Restart the collector
The restart command varies depending on what platform you deployed the collector on and what tool you used to deploy it. Here are general examples of the restart command:
- Linux
-
BASH
sudo systemctl restart splunk-otel-collector - Windows
-
Windows with installer script:
BASHstop-service splunk-otel-collector start-service splunk-otel-collector - Kubernetes
-
BASH
helm upgrade your-splunk-otel-collector splunk-otel-collector-chart/splunk-otel-collector -f your-override-values.yamlwhere
splunk-otel-collector-chartis the name you gave to the Helm chart in thehelm repo addcommand.
Settings reference
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