Send metrics from fluentd into Datadog. Once you have installed this plugin you can automatically turn events from streams into a Datadog metric.
- Locate the
plugin
directory of your fluentd installation. Mine is in/etc/td-agent/plugin/
, on an Ubuntu 14.10 box. - Copy
out_datadog.rb
into thatplugin
directory. - Make sure that dogapi is installed on your system.
- Configure
td-agent.conf
as shown below. - Restart fluentd.
- Get your Datadog API key.
- Add the following section to
td-agent.conf
<match datadog.**>
type datadog
dd_api_key PUT_YOUR_DATADOG_API_KEY_HERE
</match>
echo '{"metric":"some.metric.name", "value":50.0}' | fluent-cat datadog.metric