Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/bscott/chef-handler-librato
Chef Handler to send metrics to Librato
https://github.com/bscott/chef-handler-librato
Last synced: 26 days ago
JSON representation
Chef Handler to send metrics to Librato
- Host: GitHub
- URL: https://github.com/bscott/chef-handler-librato
- Owner: bscott
- Created: 2012-06-23T01:35:20.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2017-01-16T20:46:25.000Z (almost 8 years ago)
- Last Synced: 2024-10-18T14:59:20.319Z (about 2 months ago)
- Language: Ruby
- Size: 477 KB
- Stars: 4
- Watchers: 3
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-chef - Chef Librato Handler - A handler that sends Chef run metrics to Librato. (Chef handlers / Resources - Application configuration)
README
chef-handler-librato
====================
#### Build Status
[![Build Status](https://travis-ci.org/bscott/chef-handler-librato.svg)](https://travis-ci.org/bscott/chef-handler-librato)====================
Chef Handler to send metrics to Librato metrics!
##Description
This is a simple Chef report handler that reports status of a Chef run through librato.
http://wiki.opscode.com/display/chef/Exception+and+Report+Handlers
Requirements:
There are two ways to use Chef Handlers.
##Method 1
You can install the RubyGem ahead of time, and configure Chef to use them. To do so:
gem install chef-handler-librato
Then add to the configuration (/etc/chef/solo.rb for chef-solo or /etc/chef/client.rb for chef-client):
require "chef-handler-librato"
##### Configure the handler:
librato_handler = LibratoReporting.new
#### Arguments:
#### Email and Api_key arguments
librato_handler.email = "[email protected]"
librato_handler.api_key = "667hhff544300096423345"### Add your handler:
report_handlers << librato_handler
exception_handlers << librato_handler##Method 2
Use the chef_handler cookbook by Opscode. Create a recipe with the following:
##### Install the `chef-handler-librato` RubyGem during the compile phase
gem_package "chef-handler-librato" do
action :nothing
end.run_action(:install)
orchef_gem "chef-handler-librato" # This workd with Chef-0.10.10 or higher
### Activate the handler with the `chef_handler` LWRP
argument_array = [
:metric_type => "counter" ,
:email => "[email protected]",
:api_key => "c544637891cf5498f9efac33257689rtt57777894"
]
chef_handler "LibratoReporting" do
source Gem.find_files.(chef/chef_handler_librato).first
arguments argument_array
action :nothing
end.run_action(:enable)Patches welcome, just send me a pull request!
Author:
* Brian Scott ([email protected])
Contributions:
* [Pete Cheslock](https://github.com/petecheslock)
* [Jesse Nelson](https://github.com/spheromak)
* [Mike Juarez](https://github.com/mjuarez)