Home

Awesome

Description

Build Status

A cookbook that includes a report handler for sending chef run results to graphite. If you have the ohai-system_packages plugin installed, it will also send package statistics to graphite.

Requirements

The chef_handler cookbook.

Attributes

This cookbook uses the following attributes to configure how it is installed.

Usage

Set the host and port attributes on the node and include the "graphite_handler::default" recipe.

Custom metrics

To send custom metrics, fill a hash in run_context[:graphite_handler_metrics]. For instance, in a ruby_block:

run_context[:graphite_handler_metrics] ||= {}
run_context[:graphite_handler_metrics][:monitoring_registration_time] = Benchmark.measure { register node }.real

Credits

The handler was originally written by Ian Meyer and was converted to a cookbook by Peter Donald. Contributions by Lew Goettner, Julian Dunn and others.