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

diamond (3) Versions 0.0.1

Installs/Configures diamond

Policyfile
Berkshelf
Knife
cookbook 'diamond', '= 0.0.1', :supermarket
cookbook 'diamond', '= 0.0.1'
knife supermarket install diamond
knife supermarket download diamond
README
Dependencies
Quality 0%

About

Diamond is a python daemon that collects system metrics and publishes them to Graphite. It is
capable of collecting cpu, memory, network, i/o, load and disk metrics. Additionally,
it features an API for implementing custom collectors for gathering metrics from almost any source.

The documentation can be found on our wiki. For your
convenience the wiki is setup as a submodule of this checkout. You can get it via running

git submodule init
git submodule update

Definitions

This cookbook has a definition to make it easy to create collector configs. By default, the definition enables the
collector. You can supply it with addition parameters. Below is the simplest example.

    collector_config "CPUCollector"

This simple example just enables the collector and it inhereits the default configuration for this collector as defined
by the collector.

You can override these default settings by passing additional parameters. Below is an example of this.

    collector_config "DiskSpaceCollector" do
      filesystems      'ext2,ext3,xfs'
      exclude_filters  "'^/export/home'"
    end

This example is enabling the DiskSpaceCollector while passing addition settings to specify which filesystems to mine data
and to exclude certain directories (regex). Read the documentation/collector source code for information on what parameters
each collector has.
It is recommended that instead of passing values directly, inherit them from the node (as show belown).

    collector_config "DiskSpaceCollector" do
      filesystems      node[:diamond][:collectors][:DiskSpaceCollector][:filesystems]
      exclude_filters  node[:diamond][:collectors][:DiskSpaceCollector][:exclude_filters]
    end

When you are collecting data via snmp, you need to specify that in the definition (as shown below)

collector_config "SNMPInterfaceCollector" do
path node[:diamond][:collectors][:SNMPInterfaceCollector][:path]
snmp true
interval node[:diamond][:collectors][:SNMPInterfaceCollector][:interval]
timeout node[:diamond][:collectors][:SNMPInterfaceCollector][:timeout]
retries node[:diamond][:collectors][:SNMPInterfaceCollector][:retries]
port node[:diamond][:collectors][:SNMPInterfaceCollector][:port]
community node[:diamond][:collectors][:SNMPInterfaceCollector][:community]
devices node[:diamond][:collectors][:SNMPInterfaceCollector][:devices]
end

Usage

It is recommended that you create a recipe per collector, and add that recipe to the related role.
When passing sensitive data to a diamond collector config (ie a username, password, etc), use data bags
to encrypt the values.

Dependent cookbooks

This cookbook has no specified dependencies.

Contingent cookbooks

There are no cookbooks that are contingent upon this one.

Collaborator Number Metric
            

0.0.1 failed this metric

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

Foodcritic Metric
            

0.0.1 failed this metric

FC001: Use strings in preference to symbols to access node attributes: /tmp/ea25302cbe85c6f906ae1381/diamond/attributes/default.rb:1
FC001: Use strings in preference to symbols to access node attributes: /tmp/ea25302cbe85c6f906ae1381/diamond/attributes/default.rb:3
FC001: Use strings in preference to symbols to access node attributes: /tmp/ea25302cbe85c6f906ae1381/diamond/attributes/default.rb:5
FC001: Use strings in preference to symbols to access node attributes: /tmp/ea25302cbe85c6f906ae1381/diamond/attributes/mongo.rb:1
FC001: Use strings in preference to symbols to access node attributes: /tmp/ea25302cbe85c6f906ae1381/diamond/attributes/mongo.rb:2
FC001: Use strings in preference to symbols to access node attributes: /tmp/ea25302cbe85c6f906ae1381/diamond/attributes/mysql.rb:1
FC001: Use strings in preference to symbols to access node attributes: /tmp/ea25302cbe85c6f906ae1381/diamond/attributes/mysql.rb:2
FC001: Use strings in preference to symbols to access node attributes: /tmp/ea25302cbe85c6f906ae1381/diamond/attributes/mysql.rb:3
FC001: Use strings in preference to symbols to access node attributes: /tmp/ea25302cbe85c6f906ae1381/diamond/attributes/mysql.rb:4
FC001: Use strings in preference to symbols to access node attributes: /tmp/ea25302cbe85c6f906ae1381/diamond/attributes/netscaler.rb:1
FC001: Use strings in preference to symbols to access node attributes: /tmp/ea25302cbe85c6f906ae1381/diamond/attributes/netscaler.rb:2
FC001: Use strings in preference to symbols to access node attributes: /tmp/ea25302cbe85c6f906ae1381/diamond/attributes/netscaler.rb:3
FC001: Use strings in preference to symbols to access node attributes: /tmp/ea25302cbe85c6f906ae1381/diamond/attributes/netscaler.rb:4
FC001: Use strings in preference to symbols to access node attributes: /tmp/ea25302cbe85c6f906ae1381/diamond/attributes/network.rb:1
FC001: Use strings in preference to symbols to access node attributes: /tmp/ea25302cbe85c6f906ae1381/diamond/attributes/network.rb:2
FC001: Use strings in preference to symbols to access node attributes: /tmp/ea25302cbe85c6f906ae1381/diamond/attributes/nginx.rb:1
FC001: Use strings in preference to symbols to access node attributes: /tmp/ea25302cbe85c6f906ae1381/diamond/attributes/nginx.rb:2
FC001: Use strings in preference to symbols to access node attributes: /tmp/ea25302cbe85c6f906ae1381/diamond/attributes/serverpdutech.rb:1
FC001: Use strings in preference to symbols to access node attributes: /tmp/ea25302cbe85c6f906ae1381/diamond/attributes/serverpdutech.rb:2
FC001: Use strings in preference to symbols to access node attributes: /tmp/ea25302cbe85c6f906ae1381/diamond/attributes/serverpdutech.rb:3
FC001: Use strings in preference to symbols to access node attributes: /tmp/ea25302cbe85c6f906ae1381/diamond/attributes/serverpdutech.rb:4
FC001: Use strings in preference to symbols to access node attributes: /tmp/ea25302cbe85c6f906ae1381/diamond/attributes/snmp-interface.rb:1
FC001: Use strings in preference to symbols to access node attributes: /tmp/ea25302cbe85c6f906ae1381/diamond/attributes/snmp-interface.rb:2
FC001: Use strings in preference to symbols to access node attributes: /tmp/ea25302cbe85c6f906ae1381/diamond/attributes/snmp-interface.rb:3
FC001: Use strings in preference to symbols to access node attributes: /tmp/ea25302cbe85c6f906ae1381/diamond/attributes/snmp-interface.rb:4
FC001: Use strings in preference to symbols to access node attributes: /tmp/ea25302cbe85c6f906ae1381/diamond/attributes/snmp-interface.rb:5
FC001: Use strings in preference to symbols to access node attributes: /tmp/ea25302cbe85c6f906ae1381/diamond/recipes/default.rb:7
FC001: Use strings in preference to symbols to access node attributes: /tmp/ea25302cbe85c6f906ae1381/diamond/recipes/diskspace.rb:6
FC001: Use strings in preference to symbols to access node attributes: /tmp/ea25302cbe85c6f906ae1381/diamond/recipes/diskspace.rb:7
FC001: Use strings in preference to symbols to access node attributes: /tmp/ea25302cbe85c6f906ae1381/diamond/recipes/diskspace.rb:8
FC001: Use strings in preference to symbols to access node attributes: /tmp/ea25302cbe85c6f906ae1381/diamond/recipes/haproxy.rb:9
FC001: Use strings in preference to symbols to access node attributes: /tmp/ea25302cbe85c6f906ae1381/diamond/recipes/haproxy.rb:10
FC001: Use strings in preference to symbols to access node attributes: /tmp/ea25302cbe85c6f906ae1381/diamond/recipes/httpd.rb:6
FC001: Use strings in preference to symbols to access node attributes: /tmp/ea25302cbe85c6f906ae1381/diamond/recipes/httpd.rb:7
FC001: Use strings in preference to symbols to access node attributes: /tmp/ea25302cbe85c6f906ae1381/diamond/recipes/mongo.rb:13
FC001: Use strings in preference to symbols to access node attributes: /tmp/ea25302cbe85c6f906ae1381/diamond/recipes/mongo.rb:14
FC001: Use strings in preference to symbols to access node attributes: /tmp/ea25302cbe85c6f906ae1381/diamond/recipes/mysql.rb:9
FC001: Use strings in preference to symbols to access node attributes: /tmp/ea25302cbe85c6f906ae1381/diamond/recipes/mysql.rb:10
FC001: Use strings in preference to symbols to access node attributes: /tmp/ea25302cbe85c6f906ae1381/diamond/recipes/mysql.rb:11
FC001: Use strings in preference to symbols to access node attributes: /tmp/ea25302cbe85c6f906ae1381/diamond/recipes/mysql.rb:12
FC001: Use strings in preference to symbols to access node attributes: /tmp/ea25302cbe85c6f906ae1381/diamond/recipes/netscaler.rb:10
FC001: Use strings in preference to symbols to access node attributes: /tmp/ea25302cbe85c6f906ae1381/diamond/recipes/netscaler.rb:12
FC001: Use strings in preference to symbols to access node attributes: /tmp/ea25302cbe85c6f906ae1381/diamond/recipes/netscaler.rb:13
FC001: Use strings in preference to symbols to access node attributes: /tmp/ea25302cbe85c6f906ae1381/diamond/recipes/netscaler.rb:14
FC001: Use strings in preference to symbols to access node attributes: /tmp/ea25302cbe85c6f906ae1381/diamond/recipes/netscaler.rb:15
FC001: Use strings in preference to symbols to access node attributes: /tmp/ea25302cbe85c6f906ae1381/diamond/recipes/netscaler.rb:17
FC001: Use strings in preference to symbols to access node attributes: /tmp/ea25302cbe85c6f906ae1381/diamond/recipes/network.rb:6
FC001: Use strings in preference to symbols to access node attributes: /tmp/ea25302cbe85c6f906ae1381/diamond/recipes/network.rb:7
FC001: Use strings in preference to symbols to access node attributes: /tmp/ea25302cbe85c6f906ae1381/diamond/recipes/nfs.rb:5
FC001: Use strings in preference to symbols to access node attributes: /tmp/ea25302cbe85c6f906ae1381/diamond/recipes/nginx.rb:6
FC001: Use strings in preference to symbols to access node attributes: /tmp/ea25302cbe85c6f906ae1381/diamond/recipes/nginx.rb:7
FC001: Use strings in preference to symbols to access node attributes: /tmp/ea25302cbe85c6f906ae1381/diamond/recipes/nginx.rb:8
FC001: Use strings in preference to symbols to access node attributes: /tmp/ea25302cbe85c6f906ae1381/diamond/recipes/nginx.rb:9
FC001: Use strings in preference to symbols to access node attributes: /tmp/ea25302cbe85c6f906ae1381/diamond/recipes/servertechpdu.rb:9
FC001: Use strings in preference to symbols to access node attributes: /tmp/ea25302cbe85c6f906ae1381/diamond/recipes/servertechpdu.rb:11
FC001: Use strings in preference to symbols to access node attributes: /tmp/ea25302cbe85c6f906ae1381/diamond/recipes/servertechpdu.rb:12
FC001: Use strings in preference to symbols to access node attributes: /tmp/ea25302cbe85c6f906ae1381/diamond/recipes/servertechpdu.rb:13
FC001: Use strings in preference to symbols to access node attributes: /tmp/ea25302cbe85c6f906ae1381/diamond/recipes/servertechpdu.rb:14
FC001: Use strings in preference to symbols to access node attributes: /tmp/ea25302cbe85c6f906ae1381/diamond/recipes/servertechpdu.rb:16
FC001: Use strings in preference to symbols to access node attributes: /tmp/ea25302cbe85c6f906ae1381/diamond/recipes/snmp-interface.rb:9
FC001: Use strings in preference to symbols to access node attributes: /tmp/ea25302cbe85c6f906ae1381/diamond/recipes/snmp-interface.rb:11
FC001: Use strings in preference to symbols to access node attributes: /tmp/ea25302cbe85c6f906ae1381/diamond/recipes/snmp-interface.rb:12
FC001: Use strings in preference to symbols to access node attributes: /tmp/ea25302cbe85c6f906ae1381/diamond/recipes/snmp-interface.rb:13
FC001: Use strings in preference to symbols to access node attributes: /tmp/ea25302cbe85c6f906ae1381/diamond/recipes/snmp-interface.rb:14
FC001: Use strings in preference to symbols to access node attributes: /tmp/ea25302cbe85c6f906ae1381/diamond/recipes/snmp-interface.rb:16
FC001: Use strings in preference to symbols to access node attributes: /tmp/ea25302cbe85c6f906ae1381/diamond/recipes/tcp.rb:6
FC001: Use strings in preference to symbols to access node attributes: /tmp/ea25302cbe85c6f906ae1381/diamond/recipes/varnish.rb:6
FC001: Use strings in preference to symbols to access node attributes: /tmp/ea25302cbe85c6f906ae1381/diamond/recipes/xen.rb:6
FC015: Consider converting definition to a Custom Resource: /tmp/ea25302cbe85c6f906ae1381/diamond/definitions/collector_conf.rb:1
FC019: Access node attributes in a consistent manner: /tmp/ea25302cbe85c6f906ae1381/diamond/recipes/default.rb:15
FC019: Access node attributes in a consistent manner: /tmp/ea25302cbe85c6f906ae1381/diamond/recipes/default.rb:22
FC019: Access node attributes in a consistent manner: /tmp/ea25302cbe85c6f906ae1381/diamond/recipes/netscaler.rb:8
FC023: Prefer conditional attributes: /tmp/ea25302cbe85c6f906ae1381/diamond/recipes/netscaler.rb:8
FC043: Prefer new notification syntax: /tmp/ea25302cbe85c6f906ae1381/diamond/definitions/collector_conf.rb:2
FC043: Prefer new notification syntax: /tmp/ea25302cbe85c6f906ae1381/diamond/definitions/collector_conf.rb:4
FC043: Prefer new notification syntax: /tmp/ea25302cbe85c6f906ae1381/diamond/recipes/default.rb:13
FC043: Prefer new notification syntax: /tmp/ea25302cbe85c6f906ae1381/diamond/recipes/default.rb:20
FC043: Prefer new notification syntax: /tmp/ea25302cbe85c6f906ae1381/diamond/recipes/default.rb:31
FC064: Ensure issues_url is set in metadata: /tmp/ea25302cbe85c6f906ae1381/diamond/metadata.rb:1
FC065: Ensure source_url is set in metadata: /tmp/ea25302cbe85c6f906ae1381/diamond/metadata.rb:1