A Puppet report processor for sending metrics to a graphite server.
- Puppet
- A graphite server.
-
Install
puppet-module-graphite
as a module in your Puppet master's module path (puppet master --genconfig | grep 'modulepath ='
orpuppet config print modulepath
) -
Update the
host
,port
, andprefix
settings in the<puppet_config_dir>/graphite.yaml
file (example:/etc/puppet/graphite.yaml
) with your graphite server's hostname/IP, the port graphite is listening on, and (optionally) a prefix you'd like added to the path of the metrics sent by the report processor. By default, metrics are prefixed with 'puppet'. An example configuration file is included ingraphite-example.yaml
. -
Enable
pluginsync
and reports inpuppet.conf
(for your master and your agents.) Addgraphite
to thereports
setting. Yourpuppet.conf
might look something like this:
[master]
pluginsync = true
report = true
reports = store,graphite
[agent]
pluginsync = true
report = true
- Run Puppet on your master the usual way to get the report sync'ed as a plugin.