Giter Site home page Giter Site logo

chef-collectd's Introduction

DESCRIPTION

Configure and install the collectd monitoring daemon.

REQUIREMENTS

This cookbook has only been tested on Ubuntu 10.04 and 12.04.

The following cookbooks are required:

Centos/RHEL support is implied by the metadata and should work. The cookbook is lacking an initscript template to deploy when runit isn't available.

ATTRIBUTES

  • collectd.basedir - Base folder for collectd output data.
  • collectd.plugin_dir - Base folder to find plugins.
  • collectd.types_db - Path to the files to read graph type information from.
  • collectd.interval - Time period in seconds to wait between data reads.

USAGE

Three main recipes are provided:

  • collectd::client or collectd::default - Install a unconfigured collectd
  • collectd::client_collectd - Install collectd and configure it to send data to a collectd server.
  • collectd::client_graphite - Install collectd and configure it to send data to a carbon server.
  • collectd::server - Install collectd and configure it to recieve data from clients.

The client recipe will use the search index to automatically locate the server hosts, so no manual configuration is required.

LWRPs

A lwrp is included for configuring plugins.

collectd_plugin

You may use the collectd_plugin provider to configure and enable collectd plugins.

%w(disk entropy memory swap).each do |plug|
  collectd_plugin plug
end

collectd_plugin 'syslog' do
  options :log_level => 'info',
    :notify_level => 'warning'
end

collectd_plugin 'tcpconns' do
  options :listening_ports => true
end

The options hash is converted to collectd-style settings automatically. Any symbol key will be converted to camel-case. In the above example :listening_ports will be output as the key ListeningPorts. If the key is already a string, this conversion is skipped. If the value is an array, it will be output as a separate line for each element.

LICENSE & AUTHORS

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

chef-collectd's People

Contributors

coderanger avatar miah avatar trobrock avatar

Watchers

 avatar

Forkers

danryan

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.