Contents

Sending metrics from Puppet to Librato

Contents

I’ve just released a Puppet report processor for sending metrics to Librato. The report sends each of the metrics to Librato, for example creating:

puppet.changed_resources
puppet.config_retrieval_time
...

You can find the code on GitHub and a module on the Forge.

There are some simple installation instructions:

  1. Install the librato-metrics gem on your Puppet master

    $ sudo gem install librato-metrics
    
  2. Install puppet-librato as a module in your Puppet master’s module path.

  3. Update the librato_email and librato_key variables in the librato.yaml file with your Librato account email and API key and copy the file to /etc/puppet/. An example file is included.

  4. Enable pluginsync and reports on your master and clients in puppet.conf

    [master]
    report = true
    reports = librato
    pluginsync = true
    [agent]
    report = true
    pluginsync = true
    
  5. Run the Puppet client and sync the report as a plugin.