<commit_before>cookbook-mackerel-agent ![Build Status](https://circleci.com/gh/mackerelio/cookbook-mackerel-agent.svg?style=shield&circle-token=<PASSWORD>)
=======================

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
========

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

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

include_recipe 'mackerel-agent'
```

Attributes
==========

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

```ruby<commit_msg>fix SYNPOSIS<commit_after>cookbook-mackerel-agent ![Build Status](https://circleci.com/gh/mackerelio/cookbook-mackerel-agent.svg?style=shield&circle-token=<PASSWORD>)
=======================

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
========

```ruby
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'] = ture #optional
node.default['mackerel-agent']['conf']['plugin.metrics.vmstat'] = { # optional
  'command' => 'ruby /etc/sensu/plugins/system/vmstat-metrics.rb',
}

include_recipe 'mackerel-agent'
```

Attributes
==========

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

```ruby
{'fraction_non_alphanumeric': 0.2009132420091324, 'fraction_numerical': 0.0060882800608828, 'mean_word_length': 5.99290780141844, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 7, 'https://': 4, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '272461', 'n_tokens_mistral': 649, 'n_tokens_neox': 610, 'n_words': 132}