cookbook 'collectd-ng', '= 1.2.0'
collectd-ng (8) Versions 1.2.0 Follow2
Installs and configures collectd.
cookbook 'collectd-ng', '= 1.2.0', :supermarket
knife supermarket install collectd-ng
knife supermarket download collectd-ng
collectd
Description
Installs and configures collectd. Much of the work in this cookbook reflects
work done by coderanger and
realityforge.
Requirements
Platforms
- Amazon 2012.09
- CentOS 6.5
- Ubuntu 12.04
Cookbooks
- build-essential
- yum
Attributes
-
node["collectd"]["version"]
- Version of collectd to install. -
node["collectd"]["dir"]
- Base directory for collectd. -
node["collectd"]["url"]
- URL to the collectd archive. -
node["collectd"]["checksum"]
- Checksum for the collectd archive. -
node["collectd"]["interval"]
- Number of seconds to wait between data reads. -
node["collectd"]["read_threads"]
- Number of threads performing data reads. -
node["collectd"]["name"]
- Name of the node reporting statstics. -
node["collectd"]["plugins"]
- Mash of plugins for installation. -
node["collectd"]["python_plugins"]
- Mash of Python plugins for installation. -
node["collectd"]["plugins_conf_dir"]
- Directory for collectd plugins configuration files. -
node["collectd"]["graphite_role"]
– Role assigned to Graphite server for search. -
node["collectd"]["graphite_ipaddress"]
– IP address to Graphite server if you're trying to target one that isn't searchable. -
node["collectd"]["packages"]
– List of collectd packages.
Recipes
-
recipe[collectd]
will install collectd from source. -
recipe[collectd::attribute_driven]
will install collectd via node attributes. -
recipe[collectd::packages]
will install collectd (and other plugins) from packages. -
recipe[collectd::recompile]
will attempt to recompile collectd.
Note: You need to include the default recipe[collectd]
when using recipe[collectd:attribute_driven]
to install collectd
.
Usage
By default this cookbook will attempt to download collectd from collectd.org.
If your HTTP request includes Chef as the user agent, collectd.org returns an
HTTP response with a message asking you to please stop using their downloads
via Chef. It is highly recommended that you override
node["collectd"]["url"]
with your own download location for collectd.
A list of alternative download locations for collectd:
In order to configure collectd via attributes, setup your roles like:
default_attributes( "collectd" => { "plugins" => { "syslog" => { "config" => { "LogLevel" => "Info" } }, "disk" => { }, "swap" => { }, "memory" => { }, "cpu" => { }, "interface" => { "config" => { "Interface" => "lo", "IgnoreSelected" => true } }, "df" => { "config" => { "ReportReserved" => false, "FSType" => [ "proc", "sysfs", "fusectl", "debugfs", "devtmpfs", "devpts", "tmpfs" ], "IgnoreSelected" => true } }, "write_graphite" => { "config" => { "Prefix" => "servers." } } } } )
Dependent cookbooks
build-essential >= 0.0.0 |
yum-epel >= 0.0.0 |
Contingent cookbooks
There are no cookbooks that are contingent upon this one.
v1.2.0:
- Add support for
redis
plugin.
v1.1.2:
- Fix syntax error in
packages
recipe.
v1.1.1:
- Fix regression in ability to install and configure using
packages
recipe withattribute_driven
.
v1.1.0:
- Add support for ChefSpec.
v1.0.0:
- Make use of
use_inline_resources
in resource providers. This change breaks backwards compatibility with versions of Chef prior to 11.
v0.5.2:
- Add support for supplying
FQDNLookup
as an attribute. - Ensure Python development libraries are when using the Python plugin on Debian.
v0.5.1:
- Update metadata version.
v0.5.0:
- Add support for collectd Python plugins.
- Add support for removing collectd plugins.
v0.4.4:
- Add support for a plugin configuration directory different from the base directory.
- Add support for Ubuntu 14.04 (Trusty) to test suite.
v0.4.3:
- Add support for
write_http
plugin.
v0.4.2:
- Bump collectd version to
5.4.1
.
v0.4.1:
- Fix permissions on
init.d
script.
v0.4.0:
- Updated direct
yum
dependency toyum-epel
.
v0.3.1:
- Update Vagrant boxes in Test Kitchen suite.
- Fix issue with collectd installation and vagrant-cachier.
v0.3.0:
- Bump collectd version to
5.4.0
. - Update collectd download URL for Test Kitchen suite.
- Add alternative collectd download URLs to README.
v0.2.2:
- Set
write_graphite
host attribute vianode.default
overnode.set
.
v0.2.1:
- Fixed
write_graphite
plugin issues when overridingHost
via attributes.
v0.2.0:
- Fixed issues with Chef 11 attributes changes.
v0.1.1:
- Fix FC043.
v0.1.0:
- Added test-kitchen support.
v0.0.8:
- Altered remote_file action to :create_if_missing.
v0.0.7:
- Bump collectd version to 5.1.1.
v0.0.6:
- Fix for RHEL5 package support for compilation.
v0.0.5:
- Install libraries for plugins prior to compilation.
v0.0.4:
- Fixes Foodcritic failures.
- Package installation support.
- RHEL init script support.
- Added a recompilation recipe.
v0.0.3:
- Added build-essential as a dependency.
v0.0.2:
- Scoped Graphite auto-discovery to Chef environment.
v0.0.1:
- Initial release.
Foodcritic Metric
1.2.0 failed this metric
FC031: Cookbook without metadata file: /tmp/cook/d35604b33cb5e7146c780c45/collectd-ng/metadata.rb:1
FC045: Consider setting cookbook name in metadata: /tmp/cook/d35604b33cb5e7146c780c45/collectd-ng/metadata.rb:1
1.2.0 failed this metric
FC045: Consider setting cookbook name in metadata: /tmp/cook/d35604b33cb5e7146c780c45/collectd-ng/metadata.rb:1