Itamae::Plugin::Recipe::Mackerel::Agent

Gem Version

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

  1. Fork it ( https://github.com/mackerelio/itamae-plugin-recipe-mackerel-agent/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request