cookbook 'scollector', '= 1.0.0'
scollector (5) Versions 1.0.0 Follow2
Installs/Configures scollector
cookbook 'scollector', '= 1.0.0', :supermarket
knife supermarket install scollector
knife supermarket download scollector
scollector Cookbook
This cookbook downloads and installs scollector for [bosun](bosun.org).
Requirements
- Chef Client 11.x or better
Platforms
Currently tested only on Ubuntu 14.04. Probably works on Debain and may work on other.
Dependent Cookbooks
- runit
- golang
Attributes
-
node['scollector']['host']
- Sets bosun server host -
node['scollector']['port']
- Sets bosun server port -
node['scollector']['bin_path']
- Sets path to scollector executable -
node['scollector']['conf_dir']
- Sets dir for scollector config dir -
node['scollector']['log_dir']
- Sets dir for logs dir -
node['scollector']['collectors_dir']
- Sets dir for external collectors (scollector runs all executables every <interval> sec in collectors_dir/<interval>/) -
node['scollector']['config_cookbook']
- Cookbook where template scollector.conf.erb is stored -
node['scollector']['tags']
- Tags to add to metrics, that scollector sends to bosun.
Recipes
This section describes the recipes in the cookbook and how to use them in your environment.
default
Includes the golang::packages
and scollector::configure
recipes by default.
configure
Configures scollector.conf and enables runit service for scollector.
Usage
You can include scollector::default
in your company cookbook and redefine attributes there like
companyname-scollector/attributes/default.rb:
default['scollector']['host'] = '192.168.169.21'
default['scollector']['port'] = 8070
Or you can redefine it in your role or environment.
License & Authors
- Author:: Tony Nyurkin (ptqa.mail@gmail.com)
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
runit >= 0.0.0 |
golang >= 0.0.0 |
Contingent cookbooks
There are no cookbooks that are contingent upon this one.
Foodcritic Metric
1.0.0 passed this metric
1.0.0 passed this metric