PingDirectory

Configuring Splunk to receive StatsD metrics

Splunk can be used to receive StatsD metrics.

About this task

Run the following commands to configure Splunk to receive StatsD metrics.

Steps

  1. Sign on to your Splunk dashboard at http://your-splunk.example.com:8000.

  2. Go to Settings> Data Inputs.

  3. Under Local inputs, click UDP.

  4. Click New Local UDP.

  5. Enter the following information: Port:8125

  6. Click Next.

  7. Set Source type to Metrics> statsd.

  8. Create a new metrics index for the input. Make a note of the index name you choose.

  9. Set the App Context toPingDirectory App for Splunk.

  10. Click Review.

  11. Click Submit.

    StatsD metrics are typically sent over UDP. Using UDP, the client sending metrics does not have to block as it would if using TCP. However, using TCP guarantees order and ensures no metrics are lost. To more securely send metrics to Splunk, you can first send your StatsD metrics to a Splunk Universal Forwarder, and have the forwarder communicate with Splunk over SSL