cookbook 'netdata', '= 0.1.9'
netdata (15) Versions 0.1.9 Follow6
Compile, install and configure netdata
cookbook 'netdata', '= 0.1.9', :supermarket
knife supermarket install netdata
knife supermarket download netdata
NetData Cookbook
This cookbook provides a way to download and install NetData from FireHol, a real-time performance monitoring.
Live demo: http://netdata.firehol.org
Github: https://github.com/firehol/netdata
Requirements
Platforms
- Centos => 6.7
- Ubuntu > 14.04
Chef
- Chef 12.0 or later
Cookbooks
-
yum-epel
= 0.7.0
Recipes
netdata::default
This would install NetData on supported platforms. At the moment this product does not have any distribution packages and the only supported installation method is to compile sources.
NetData cookbook will install required dependencies and after compilation succeeds those deps will be removed, except those packages that already were installed on the server prior to chef run.
Usage
netdata::default
Just include netdata
in your node's run_list
{ "name":"my_node", "run_list": [ "recipe[netdata]" ] }
Attributes
-
node['netdata']['source']['git_repository']
- Netdata git repository. Defaults to https://github.com/firehol/netdata.git -
node['netdata']['source']['git_revision']
- Netdata repository git reference. Can be a tag, branch or master. Defaults to master. node['netdata']['source']['directory']
- Local directory where the netdata repo will be cloned. Defaults to /tmp/netdata but should be replaced because most UNIX system periodically clean the /tmp directory.node['netdata']['plugins']['python']['mysql']['enabled']
- False by default. If set to true installs all needed python dependencies to connect to MySQL.
Resources
netdata_nginx_conf
Configures the netdata python nginx configuration.
jobs_config = { 'localhost' => { 'name' => 'local', 'url' => 'http://localhost/stub_status' }, 'localipv4' => { 'name' => 'local', 'url' => 'http://127.0.0.1/stub_status' } } netdata_nginx_conf 'default_config' do jobs jobs_config end
To test using ChefSpec
you can use the provided matcher configure_netdata_nginx_module
.
it 'does something' do expect(chef_run.converge(described_recipe)).to configure_netdata_nginx_module('some_config') end
Contributing
- Fork the repository on Github
- Create a named feature branch (like
add_component_x
) - Write your change
- Write tests for your change (if applicable)
- Run the tests, ensuring they all pass
- Submit a Pull Request using Github
License and Authors
Authors:
* Sergio Pena https://github.com/sergiopena
* João Madureira https://github.com/jmadureira
Dependent cookbooks
yum-epel >= 0.0.0 |
Contingent cookbooks
There are no cookbooks that are contingent upon this one.
netdata CHANGELOG
This file is used to list changes made in each version of the netdata cookbook.
0.1.0
- Sergio Pena - Initial release of netdata
0.1.1
- Sergio Pena - Add tests and kitchen specs
0.1.2
- Sergio Pena - Add Ubuntu deps and tests.
0.1.4
- João Madureira - Do not run install if htere are no changes in git repo
Collaborator Number Metric
0.1.9 failed this metric
Failure: Cookbook has 0 collaborators. A cookbook must have at least 2 collaborators to pass this metric.
Contributing File Metric
0.1.9 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 contain a CONTRIBUTING.md file
Foodcritic Metric
0.1.9 failed this metric
FC066: Ensure chef_version is set in metadata: netdata/metadata.rb:1
FC067: Ensure at least one platform supported in metadata: netdata/metadata.rb:1
FC069: Ensure standardized license defined in metadata: netdata/metadata.rb:1
Run with Foodcritic Version 11.1.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any
License Metric
0.1.9 passed this metric
No Binaries Metric
0.1.9 passed this metric
Testing File Metric
0.1.9 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 contain a TESTING.md file
Version Tag Metric
0.1.9 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
0.1.9 failed this metric
0.1.9 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 contain a CONTRIBUTING.md file
Foodcritic Metric
0.1.9 failed this metric
FC066: Ensure chef_version is set in metadata: netdata/metadata.rb:1
FC067: Ensure at least one platform supported in metadata: netdata/metadata.rb:1
FC069: Ensure standardized license defined in metadata: netdata/metadata.rb:1
Run with Foodcritic Version 11.1.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any
License Metric
0.1.9 passed this metric
No Binaries Metric
0.1.9 passed this metric
Testing File Metric
0.1.9 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 contain a TESTING.md file
Version Tag Metric
0.1.9 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
0.1.9 failed this metric
FC067: Ensure at least one platform supported in metadata: netdata/metadata.rb:1
FC069: Ensure standardized license defined in metadata: netdata/metadata.rb:1
Run with Foodcritic Version 11.1.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any
0.1.9 passed this metric
No Binaries Metric
0.1.9 passed this metric
Testing File Metric
0.1.9 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 contain a TESTING.md file
Version Tag Metric
0.1.9 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
0.1.9 passed this metric
0.1.9 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 contain a TESTING.md file
Version Tag Metric
0.1.9 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
0.1.9 failed this metric