GetValkyrie/Stouts.collectd

Name: Stouts.collectd

Owner: Valkyrie

Description: Ansible role to install and configure Collectd

Created: 2015-06-13 06:33:30.0

Updated: 2015-06-13 06:33:30.0

Pushed: 2015-05-26 14:52:49.0

Homepage: null

Size: 237

Language: Makefile

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

Stouts.collectd

Build Status Galaxy

Ansible role which help you with:

Variables
ectd_enabled: yes               # Enable the role
ectd_version: 5.4.1             # Set version
ectd_prefix: /opt/collectd      # The place where Collectd will be installed

neral options
ectd_interval: 10
ectd_readthreads: 7
ectd_hostname: "{{ inventory_hostname }}"
ectd_fdqnlookup: false

llectd plugins
ectd_plugins: []                # Ex. [nginx, memcached]
ectd_plugins_options: {}        # See below for examples.

llectd default plugins
ectd_default_plugins: [cpu, df, interface, load, memory, swap]
ectd_default_plugins_options:
ap:
ReportByDevice false
terface:
Interface lo
IgnoreSelected true

ditional types
rmat: { name: ..., value: ... }
ectd_types: []

llectd graphite options
ectd_write_graphite: no
ectd_write_graphite_options:    # Setup write_graphite (https://collectd.org/wiki/index.php/Plugin:Write_Graphite)
st: "{{inventory_hostname}}"
rt: 2003
efix: stats.
Postfix: .collectd
otocol: tcp
waysAppendDS: 'false'
capeCharacter: _
gSendErrors: 'true'
oreRates: 'true'

tup logs
ectd_logpath:                   # If it is not empty, will be used logfile
ectd_loglevel: info
ectd_logrotate: yes
ectd_logrotate_options:
compress
copytruncate
daily
dateext
rotate 7
size 10M
Usage

Add Stouts.collectd to your roles and set vars in your playbook file.

Example:

sts: all

les:
- Stouts.collectd

rs:
collectd_write_graphite: yes
collectd_plugins: [nginx]
collectd_write_graphite_options:
  Host: localhost
  LogSendErrors: 'true'
License

Licensed under the MIT License. See the LICENSE file for details.

Feedback, bug-reports, requests, …

Are welcome!


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.