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

RSS

mackerel-agent (8) Versions 2.0.0

Installs/Configures mackerel-agent

Berkshelf/Librarian
Policyfile
Knife
cookbook 'mackerel-agent', '~> 2.0.0'
cookbook 'mackerel-agent', '~> 2.0.0', :supermarket
knife cookbook site install mackerel-agent
knife cookbook site download mackerel-agent
README
Dependencies
Changelog
Quality

cookbook-mackerel-agent Build Status

This cookbook provides recipes to install and configure mackerel-agent. mackerel-agent is a server monitoring agent for https://mackerel.io .

Requirements

  • Chef 11 or higher
  • Ruby 1.9

SYNPOSIS

node.default['mackerel-agent']['conf']['apikey'] = 'Your API KEY' # required
node.default['mackerel-agent']['conf']['roles'] = ["My-Service:app", "Another-Service:db"] # optional

node.default['mackerel-agent']['conf']['plugin.metrics.vmstat'] = { # optional
  'command' => 'ruby /etc/sensu/plugins/system/vmstat-metrics.rb',
}

include_recipe 'mackerel-agent'
include_recipe 'mackerel-agent::plugins' # Option for installation of mackerel-agent-plugins package

Attributes

The following attributes are set by default. (CAUTION! node attribute namespace has changed since version 1.0.)

default['mackerel-agent']['package-action'] = :upgrade

You can customize agent configuration via following attributes. (These attributes are set to nil by default and agent uses their default configuration)

default['mackerel-agent']['conf']['apikey']  = nil
default['mackerel-agent']['conf']['pidfile'] = nil # in Linux, agent's default: "/var/run/mackerel-agent.pid"
default['mackerel-agent']['conf']['root'] = nil # in Linux, agent's default: "/var/lib/mackerel-agent"
default['mackerel-agent']['conf']['verbose'] = nil # agent's default: false
default['mackerel-agent']['conf']['roles'] = nil

Not to start mackerel-agent when you create a static image (like AMI)

default['mackerel-agent']['start_on_setup'] = false

Configure environment variable options

You can configure environment variable options via the following attributes. (These all attributes are set to nil by default)

default['mackerel-agent']['env_opts']['other_opts'] = nil
default['mackerel-agent']['env_opts']['auto_retirement'] = nil
default['mackerel-agent']['env_opts']['http_proxy'] = nil
default['mackerel-agent']['env_opts']['mackerel_agent_plugin_meta'] = nil

Development

Development Docuement

LICENSE

Copyright:: 2014 Hatena Co., Ltd.

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 < 4.0
apt >= 0.0.0

Contingent cookbooks

There are no cookbooks that are contingent upon this one.

mackerel-agent Cookbook CHANGELOG

This file is used to list changes made in each version of the mackerel-agent cookbook.

v2.0.0

  • append stove dependency to Gemfile and renew Gemfile.lock #32 (Songmu)
  • Support v2 package repository #29 (astj)

v1.3.0

  • Add more platforms' test #30 (astj)
  • Use TravisCI instead of CircleCI #28 (astj)
  • update README about default['mackerel-agent']['conf'] #27 (astj)
  • Support to configure environment variables opts #25 (spesnova)
  • Fixed README.md #26 (kakakakakku)

v1.2.1

  • Support new mackerel-agent for Amazon Linux #24 (by spesnova)

v1.2.0

  • Change default mackerel-agent-plugins action into :upgrade.
  • Add node['mackerel-agent']['plugins']['package-action'] attribute.
  • Set compile_time to chef_gem for future compatibility (by sawanoboly)

v1.1.0

  • Add installation of mackerel-agent-plugins package. (by koudaiii)

v1.0.1

  • Change action of service[mackerel-agent] from restart to start (by sawanoboly)
  • Restart agent when package is newly installed or upgraded
  • Add node attribute start_on_setup.

v1.0.0

  • Stable release

Collaborator Number Metric
            

2.0.0 failed this metric

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

Contributing File Metric
            

2.0.0 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
            

2.0.0 passed this metric

License Metric
            

2.0.0 failed this metric

mackerel-agent does not have a valid open source license.
Acceptable licenses include Apache-2.0, apachev2, Apache 2.0, MIT, mit, GPL-2.0, gplv2, GNU Public License 2.0, GPL-3.0, gplv3, GNU Public License 3.0.

No Binaries Metric
            

2.0.0 passed this metric

Publish Metric
            

2.0.0 passed this metric

Supported Platforms Metric
            

2.0.0 passed this metric

Testing File Metric
            

2.0.0 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
            

2.0.0 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