1. Run the following command to enable the Stats Collector plugin.
    dsconfig set-plugin-prop --plugin-name "Stats Collector" --set enabled:true
  2. Run the following command to create a StatsD monitoring endpoint. After running the following command, Directory Server will send StatsD messages to your Splunk server over UDP at port 8125.
    dsconfig create-monitoring-endpoint --endpoint-name StatsDEndpoint --type statsd \
        --set enabled:true --set hostname:your-splunk.example.com \
    --set server-port:8125 --set connection-type:unencrypted-udp