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

telegraf (26) Versions 0.1.1

Installs/Configures telegraf

Policyfile
Berkshelf
Knife
cookbook 'telegraf', '= 0.1.1', :supermarket
cookbook 'telegraf', '= 0.1.1'
knife supermarket install telegraf
knife supermarket download telegraf
README
Dependencies
Changelog
Quality 100%

telegraf

Cookbook to install and configure telegraf

This was influenced by SimpleFinanace/chef-influxdb

Note: Some plugins will require other packages be installed and that is out of scope for this
cookbook. ie. [netstat] requires lsof

Tested Platforms

  • CentOS 7.1
  • Ubuntu 14.04

Requirements

  • Chef 12.5+

Usage

This cookbook can be used by including telegraf::default in your run list and settings attributes

as needed. Alternatively, you can use the custom resources directly.

Attributes

Key Type Description Default
node['telegraf']['version'] String Version of telegraf to install, nil = latest nil
node['telegraf']['config_file_path'] String Location of the telgraf main config file '/etc/opt/telegraf/telegraf.conf'
node['telegraf']['config'] Hash Config variables to be written to the telegraf config {'tags' => {},'agent' => {'interval' => '10s','round_interval' => true,'flush_interval' => '10s','flush_jitter' => '5s'}
node['telegraf']['outputs'] Hash telegraf outputs {'outputs' => ['influxdb' => {'urls' => ['http://localhost:8086'],'database' => 'telegraf','precision' => 's'}]}
node['telegraf']['plugins'] Hash telegraf plugins {'plugins' => {'cpu' => {'percpu' => true,'totalcpu' => true,'drop' => ['cpu_time'],},'disk' => {},'io' => {},'mem' => {},'net' => {},'swap' => {},'system' => {}}}

Custom Resources

telegraf_install

Installs telegraf

telegraf_install 'default' do
  action :create
end

telegraf_config

Writes out the telegraf configuration file. Optionally includes outputs and plugins.

telegraf_config 'default' do
  path node['telegraf']['config_file_path']
  config node['telegraf']['config']
  outputs node['telegraf']['outputs']
  plugins node['telegraf']['plugins']
end

telegraf_outputs

Writes out telegraf outputs configuration file.

telegraf_outputs 'default' do
  path node['telegraf']['config_file_path']
  outputs node['telegraf']['outputs']
end

telegraf_plugins

telegraf_plugins 'default' do
  path node['telegraf']['config_file_path']
  outputs node['telegraf']['plugins']
end

License and Authors

Copyright (C) 2015 NorthPage

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.

Dependent cookbooks

yum >= 0.0.0
apt >= 0.0.0

Contingent cookbooks

There are no cookbooks that are contingent upon this one.

0.1.0

  • Initial release

0.1.1

  • Add source URL to metadata

Foodcritic Metric
            

0.1.1 passed this metric