This cookbook provides recipes to install and configure mackerel-agent. mackerel-agent is a server monitoring agent for https://mackerel.io .
- 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/mackerel-agent.pid"
default['mackerel-agent']['conf']['root'] = "/var/lib/mackerel-agent"
default['mackerel-agent']['conf']['verbose'] = false
default['mackerel-agent']['conf']['roles'] = nil
default['mackerel-agent']['start_on_setup'] = false
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.