cookbook 'collectd-ng', '~> 2.2.0'
collectd-ng (8) Versions 2.2.0 Follow2
Installs and configures collectd.
cookbook 'collectd-ng', '~> 2.2.0', :supermarket
knife supermarket install collectd-ng
knife supermarket download collectd-ng
collectd-ng
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
- CentOS 7
- Ubuntu 12.04
- Ubuntu 14.04
Cookbooks
- build-essential
- yum
Attributes
-
node["collectd"]["version"]
- Version of collectd to install. -
node["collectd"]["dir"]
- Base directory for collectd. -
node["collectd"]["plugins_conf_dir"]
- Plugin 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"]["write_queue_limit_high"]
- Upper bound on write queue size. -
node["collectd"]["write_queue_limit_low"]
- Lower bound on write queue size. -
node["collectd"]["collect_internal_stats"]
- Flag to collect internal collectd statistics. -
node["collectd"]["name"]
- Name of the node reporting statstics. -
node["collectd"]["fqdnlookup"]
- Flag to determine if the node should determine its own FQDN. -
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. -
node["collectd"]["configure_flag"]
– Flag for enabling non-default collectd packages.
Recipes
-
recipe[collectd-ng]
will install collectd from source. -
recipe[collectd-ng::attribute_driven]
will install collectd via node attributes. -
recipe[collectd-ng::packages]
will install collectd (and other plugins) from packages. -
recipe[collectd-ng::recompile]
will attempt to recompile collectd.
Note: You need to include the default recipe[collectd-ng]
when using recipe[collectd-ng: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.
2.2.0:
- Update write_graphite configuration to use Node tag.
- Update CentOS 6.x in Test Kitchen platforms.
- Update PID path reference in init script.
- Add configure flag attribute for building collectd from source.
- Fix incorrect recipe names in README.
2.1.0:
- Add systemd support for RHEL 7.x.
2.0.0:
- Rename cookbook to
collectd-ng
. - Add to Chef Supermarket.
1.3.0:
- Add support for setting
write_queue_limit_high
,write_queue_limit_low
, andcollect_internal_stats
v1.2.1:
- Fix syntax error in
collectd_plugin
delete action.
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.
Collaborator Number Metric
2.2.0 failed this metric
Failure: Cookbook has 0 collaborators. A cookbook must have at least 2 collaborators to pass this metric.
Contributing File Metric
2.2.0 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a CONTRIBUTING.md file
Foodcritic Metric
2.2.0 failed this metric
FC074: LWRP should use DSL to define resource's default action: collectd-ng/resources/plugin.rb:1
FC074: LWRP should use DSL to define resource's default action: collectd-ng/resources/python_plugin.rb:1
FC122: Use the build_essential resource instead of the recipe: collectd-ng/recipes/default.rb:1
Run with Foodcritic Version 16.3.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any
No Binaries Metric
2.2.0 passed this metric
Testing File Metric
2.2.0 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a TESTING.md file
Version Tag Metric
2.2.0 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must include a tag that matches this cookbook version number
2.2.0 failed this metric
2.2.0 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a CONTRIBUTING.md file
Foodcritic Metric
2.2.0 failed this metric
FC074: LWRP should use DSL to define resource's default action: collectd-ng/resources/plugin.rb:1
FC074: LWRP should use DSL to define resource's default action: collectd-ng/resources/python_plugin.rb:1
FC122: Use the build_essential resource instead of the recipe: collectd-ng/recipes/default.rb:1
Run with Foodcritic Version 16.3.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any
No Binaries Metric
2.2.0 passed this metric
Testing File Metric
2.2.0 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a TESTING.md file
Version Tag Metric
2.2.0 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must include a tag that matches this cookbook version number
2.2.0 failed this metric
FC074: LWRP should use DSL to define resource's default action: collectd-ng/resources/python_plugin.rb:1
FC122: Use the build_essential resource instead of the recipe: collectd-ng/recipes/default.rb:1
Run with Foodcritic Version 16.3.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any
2.2.0 passed this metric
Testing File Metric
2.2.0 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a TESTING.md file
Version Tag Metric
2.2.0 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must include a tag that matches this cookbook version number
2.2.0 failed this metric
2.2.0 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must include a tag that matches this cookbook version number