Itamae::Plugin::Recipe::Mackerel::Agent
Itamae recipe plugin for mackerel-agent
Installation
Add this line to your application's Gemfile:
gem 'itamae-plugin-recipe-mackerel-agent'
And then execute:
$ bundle
Or install it yourself as:
$ gem install itamae-plugin-recipe-mackerel-agent
Usage
Load the recipe file in gems by include_recipe
.
include_recipe "mackerel-agent"
Attributes
# API key (REQUIRED)
node['mackerel-agent']['conf']['apikey'] = 'YOUR API KEY'
# Roles (optional)
node['mackerel-agent']['conf']['roles'] = ["My-Service:app", "Another-Service:db"]
# Install official plugins (optional)
node['mackerel-agent']['plugins'] = ['mackerel-agent-plugins', 'mackerel-check-plugins', 'mkr']
# Install third party plugins (optional)
node['mackerel-agent']['extra_plugins'] = [
{
'name' => 'mackerelio/mackerel-plugin-aws-ecs',
'version' => 'v0.0.4'
}
]
# Enable plugins (optional)
node['mackerel-agent']['conf']['plugin.metrics.vmstat'] = {
'command' => 'ruby /etc/sensu/plugins/system/vmstat-metrics.rb',
}
Contributing
- Fork it ( https://github.com/mackerelio/itamae-plugin-recipe-mackerel-agent/fork )
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request