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
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
Ansible role which help you with:
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
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'
Licensed under the MIT License. See the LICENSE file for details.
Are welcome!