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


mackerel-agent (11) Versions 1.1.0

Installs/Configures mackerel-agent

cookbook 'mackerel-agent', '= 1.1.0'
cookbook 'mackerel-agent', '= 1.1.0', :supermarket
knife supermarket install mackerel-agent
knife supermarket download mackerel-agent
Quality 0%

cookbook-mackerel-agent Build Status

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


  • Chef 11 or higher
  • Ruby 1.9


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']['plugins'] = true #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


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

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

default['mackerel-agent']['conf']['apikey']  = nil
default['mackerel-agent']['conf']['pidfile'] = "/var/run/"
default['mackerel-agent']['conf']['root'] = "/var/lib/mackerel-agent"
default['mackerel-agent']['conf']['verbose'] = 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


[Development Docuement](


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

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.


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


  • 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.


  • Stable release

Foodcritic Metric

1.1.0 failed this metric

FC023: Prefer conditional attributes: /tmp/cook/6343ff1783f515719032aef2/mackerel-agent/recipes/default.rb:28
FC031: Cookbook without metadata file: /tmp/cook/6343ff1783f515719032aef2/mackerel-agent/metadata.rb:1
FC045: Consider setting cookbook name in metadata: /tmp/cook/6343ff1783f515719032aef2/mackerel-agent/metadata.rb:1