skip to content
james@kartar:~/2011/6/puppet-and-datadog

Puppet and DataDog

Adding a Puppet report processor that pushes metrics and events from each Puppet run to the DataDog API for graphing and event tracking

1 min read

# written 15 years ago; commands, versions and links may have changed

Some of you may have seen the awesome new metrics, graphing and event platform from DataDog. It’s currently in beta and well worth a look. I saw it at Velocity two weeks ago and knew I had to write an integration with Puppet. So here ‘tis! I’ve added a Puppet report processor that sends metrics and events to the DataDog API. To use it install the dogapi gem on your Puppet master

$ sudo gem install dogapi

Then install puppet-datadog as a module in your Puppet master’s modulepath and update the datadog_api_key variable in the datadog.yaml file with your Datadog API key and copy the file to /etc/puppet/. Enable pluginsync and reports on your master and clients in puppet.conf

[master]
report = true
reports = datadog
pluginsync = true
[agent]
report = true
pluginsync = true

Finally run the Puppet client and sync the report as a plugin.

P.S. Also available is a DataDog Puppet module to install the Datadog agent.

$ whoami

I'm James Turnbull. I lead engineering teams, build products, and write on technology. More about me.