librato/ansible-librato

Name: ansible-librato

Owner: Librato

Description: null

Created: 2016-11-29 00:30:51.0

Updated: 2018-04-23 07:40:34.0

Pushed: 2017-08-04 02:58:47.0

Homepage: null

Size: 23

Language: HTML

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

Ansible Role: Librato

An Ansible role that installs and configures the Librato Agent and plugins

Requirements

None

Dependencies

None

Quickstart

The bare minimum required to get started is to set the email and token variables and include the role:

sts: all
les:
- { role: librato.librato, librato_email: 'you@domain.com', librato_token: 'your-token-here' }

By default, the following plugins are enabled: cpu, df, disk, swap, memory, load.

To include a plugin, set any variables you need for it, then add it to the librato_enabled_plugins variable:

sts: all
rs:
librato_apache_path: '/my-status-endpoint'
librato_enabled_plugins: ['apache']
Supported Plugins
Usage
Using custom or upstream collectd plugins

To use your own custom or upstream collectd plugin, simply have another module drop the config into /opt/collectd/etc/collectd.conf.d/ and any custom plugins into /opt/collectd/share/collectd/.

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

Varnish has no configurable attributes.

Plugin: zookeeper
Global Variables
Supported Platforms
Supported Ansible Versions

This role requires Ansible 2.2 or later.

Development
Testing

Integration tests utilize kitchen-ansible and serverspec. To run the test suite:

  1. Run bundle install
  2. Run kitchen test
Testing Amazon Linux

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

  1. Ensure kitchen-ec2 is installed: 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

MIT

Authors & Contributors

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.