librato/chef-librato

Name: chef-librato

Owner: Librato

Description: Chef config for Librato Agent

Created: 2016-07-29 21:01:14.0

Updated: 2017-01-01 14:30:21.0

Pushed: 2017-07-18 18:15:08.0

Homepage: null

Size: 26

Language: Ruby

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

Librato Cookbook

This cookbook configures the Librato Agent and plugins.

Supported Platforms
Usage
Quickstart
  1. Set the attributes node['librato']['email'] and node['librato']['token']
  2. Include librato in your node's run_list:

un_list": [
"recipe[librato::default]"


This will install the Agent and set up the default plugins (cpu, df, disk, swap, memory, load).

Supported Plugins
Including a plugin

To include a plugin, include the recipe in your run list:


un_list": [
"recipe[librato::apache]"


All of the plugins have sane defaults, but you can modify them via the attributes.

Using a third-party or upstream plugin that isn't available here

To use a plugin that this cookbook does not directly support (see list of plugins above), create a wrapper cookbook and drop the config file and plugin file in the appropriate locations.

Config location: /opt/collectd/etc/collectd.conf.d/

Plugin location: /opt/collectd/share/collectd/

Recipes & their attributes

Each plugin has a set of attributes that you can override.

Recipe: apache
Recipe: docker
Recipe: elasticsearch
Recipe: haproxy
Recipe: jvm
Recipe: memcached
Recipe: mongodb
Recipe: mysql
Recipe: nginx
Recipe: nginx_plus
Recipe: postgresql
Recipe: redis
Recipe: varnish

Varnish has no configurable attributes.

Recipe: zookeeper
Global Attributes
Testing
Unit tests

No unit tests are written at this time.

Integration tests
  1. Run kitchen test
  2. Take a break–it takes a bit to run the full suite.
Testing Amazon Linux

Testing Amazon Linux through test-kitchen requires a bit more setup:

  1. Ensure kitchen-ec2 is installed: chef gem install kitchen-ec2
  2. Update .kitchen.yml to have the correct AWS key ID you're going to use
  3. Set security_group_ids in the driver section to include a security group accessible from your laptop. Not setting this will use the default security group.
  4. Set transport.ssh_key to the path of your SSH key. It looks for id_rsa by default.
License and Authors

Author: Mike Julian (@mjulian)


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.