Adoptable Cookbooks List

Looking for a cookbook to adopt? You can now see a list of cookbooks available for adoption!
List of Adoptable Cookbooks

Supermarket Belongs to the Community

Supermarket belongs to the community. While Chef has the responsibility to keep it running and be stewards of its functionality, what it does and how it works is driven by the community. The chef/supermarket repository will continue to be where development of the Supermarket application takes place. Come be part of shaping the direction of Supermarket by opening issues and pull requests or by joining us on the Chef Mailing List.

Select Badges

Select Supported Platforms

Select Status

RSS

collectd_ii (3) Versions 1.1.0

Installs/Configures collectd_ii

Policyfile
Berkshelf
Knife
cookbook 'collectd_ii', '~> 1.1.0', :supermarket
cookbook 'collectd_ii', '~> 1.1.0'
knife supermarket install collectd_ii
knife supermarket download collectd_ii
README
Dependencies
Changelog
Quality 50%

Chef cookbook
Code Climate
Issue Count

collectd_ii

Description

Installs and configures collectd. Much of the work in this cookbook reflects
work done by coderanger and
realityforge.

This cookbook was copied from collectd-ng cookbook by Hector Castro. I updated it for chef-client 13+.

Requirements

Platforms

  • Amazon
  • CentOS
  • Ubuntu

Cookbooks

  • build-essential
  • yum

Attributes

  • node['collectd_ii']['version'] - Version of collectd to install.
  • node['collectd_ii']['dir'] - Base directory for collectd.
  • node['collectd_ii']['plugins_conf_dir']- Plugin directory for collectd.
  • node['collectd_ii']['url'] - URL to the collectd archive.
  • node['collectd_ii']['checksum'] - Checksum for the collectd archive.
  • node['collectd_ii']['interval'] - Number of seconds to wait between data reads.
  • node['collectd_ii']['read_threads'] - Number of threads performing data reads.
  • node['collectd_ii']['write_queue_limit_high'] - Upper bound on write queue size.
  • node['collectd_ii']['write_queue_limit_low'] - Lower bound on write queue size.
  • node['collectd_ii']['collect_internal_stats'] - Flag to collect internal collectd statistics.
  • node['collectd_ii']['name'] - Name of the node reporting statstics.
  • node['collectd_ii']['fqdnlookup'] - Flag to determine if the node should determine its own FQDN.
  • node['collectd_ii']['plugins'] - Mash of plugins for installation.
  • node['collectd_ii']['python_plugins'] - Mash of Python plugins for installation.
  • node['collectd_ii']['plugins_conf_dir'] - Directory for collectd plugins configuration files.
  • node['collectd_ii']['graphite_role'] – Role assigned to Graphite server for search.
  • node['collectd_ii']['graphite_ipaddress'] – IP address to Graphite server if you're trying to target one that isn't searchable.
  • node['collectd_ii']['packages'] – List of collectd packages.
  • node['collectd_ii']['configure_flag'] – Flag for enabling non-default collectd packages.

Recipes

  • recipe[collectd_ii] will install collectd from source.
  • recipe[collectd_ii::attribute_driven] will install collectd via node attributes.
  • recipe[collectd_ii::packages] will install collectd (and other plugins) from packages.
  • recipe[collectd_ii::recompile] will attempt to recompile collectd.

Note: You need to include the default recipe[collectd_ii] when using recipe[collectd_ii: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_ii']['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.

CHANGELOG for collectd_ii

1.1.0 (4/28/2017)

  • [Corey Hemminger] - Updated collectd version to 5.5.1

1.0.1 (4/22/2017)

  • [Corey Hemminger] - bug fix

1.0.0 (4/21/2017)

  • [Corey Hemminger] - Initial commit

Collaborator Number Metric
            

1.1.0 failed this metric

Failure: Cookbook has 0 collaborators. A cookbook must have at least 2 collaborators to pass this metric.

Contributing File Metric
            

1.1.0 passed this metric

Foodcritic Metric
            

1.1.0 failed this metric

FC074: LWRP should use DSL to define resource's default action: collectd_ii/resources/plugin.rb:1
FC074: LWRP should use DSL to define resource's default action: collectd_ii/resources/python_plugin.rb:1
FC121: Cookbook depends on cookbook made obsolete by Chef 14: collectd_ii/metadata.rb:1
FC122: Use the build_essential resource instead of the recipe: collectd_ii/recipes/default.rb:19
Run with Foodcritic Version 16.3.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any

No Binaries Metric
            

1.1.0 passed this metric

Testing File Metric
            

1.1.0 passed this metric

Version Tag Metric
            

1.1.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