<commit_before>## Sensu-Plugins-graphite

[ ![Build Status](https://travis-ci.org/sensu-plugins/sensu-plugins-graphite.svg?branch=master)](https://travis-ci.org/sensu-plugins/sensu-plugins-graphite)
[![Gem Version](https://badge.fury.io/rb/sensu-plugins-graphite.svg)](http://badge.fury.io/rb/sensu-plugins-graphite)
[![Code Climate](https://codeclimate.com/github/sensu-plugins/sensu-plugins-graphite/badges/gpa.svg)](https://codeclimate.com/github/sensu-plugins/sensu-plugins-graphite)
[![Test Coverage](https://codeclimate.com/github/sensu-plugins/sensu-plugins-graphite/badges/coverage.svg)](https://codeclimate.com/github/sensu-plugins/sensu-plugins-graphite)
[![Dependency Status](https://gemnasium.com/sensu-plugins/sensu-plugins-graphite.svg)](https://gemnasium.com/sensu-plugins/sensu-plugins-graphite)

## Functionality

## Files
 * bin/check-graphite-data
 * bin/check-graphite-replication
 * bin/check-graphite-stats
 * bin/check-graphite
 * bin/extension-graphite
 * bin/handler-graphite-event
 * bin/handler-graphite-notify
 * bin/handler-graphite-occurrences
 * bin/mutator-graphite

## Usage

**handler-graphite-event**
```
{
  "graphite_event": {
    "server_uri": "https://graphite.example.com:443/events/",
    "tags": [
      "custom_tag_a",
      "custom_tag_b"
    ]
  }
}
```

**handler-graphite-occurrences**
```
{
 "graphite": {
    "server":"graphite.example.com",
    "port":"2003"
 }
}
```

**handler-graphite-notify**
```
{
 "graphite_notify": {
    "host":"graphite.example.com",
    "port":"2003",
    "prefix":"sensu.events"
 }
}
```

**handler-graphite-status**
```
{
 "graphite_notify": {
    "host":"graphite.example.com",
    "port":"2003",
    "prefix":"sensu.events"
 }
}
```

TCP handler (preferred)
```
{
  "graphite_event": {
    "server_uri": "https://graphite.example.com:443/events/",
    "tags": [
      "custom_tag_a",
      "custom_tag_b"
    ]
  },
  "handlers":
  {
    "default": {
      "type": "set",<commit_msg>We put status instead of notify<commit_after>## Sensu-Plugins-graphite

[ ![Build Status](https://travis-ci.org/sensu-plugins/sensu-plugins-graphite.svg?branch=master)](https://travis-ci.org/sensu-plugins/sensu-plugins-graphite)
[![Gem Version](https://badge.fury.io/rb/sensu-plugins-graphite.svg)](http://badge.fury.io/rb/sensu-plugins-graphite)
[![Code Climate](https://codeclimate.com/github/sensu-plugins/sensu-plugins-graphite/badges/gpa.svg)](https://codeclimate.com/github/sensu-plugins/sensu-plugins-graphite)
[![Test Coverage](https://codeclimate.com/github/sensu-plugins/sensu-plugins-graphite/badges/coverage.svg)](https://codeclimate.com/github/sensu-plugins/sensu-plugins-graphite)
[![Dependency Status](https://gemnasium.com/sensu-plugins/sensu-plugins-graphite.svg)](https://gemnasium.com/sensu-plugins/sensu-plugins-graphite)

## Functionality

## Files
 * bin/check-graphite-data
 * bin/check-graphite-replication
 * bin/check-graphite-stats
 * bin/check-graphite
 * bin/extension-graphite
 * bin/handler-graphite-event
 * bin/handler-graphite-notify
 * bin/handler-graphite-occurrences
 * bin/mutator-graphite

## Usage

**handler-graphite-event**
```
{
  "graphite_event": {
    "server_uri": "https://graphite.example.com:443/events/",
    "tags": [
      "custom_tag_a",
      "custom_tag_b"
    ]
  }
}
```

**handler-graphite-occurrences**
```
{
 "graphite": {
    "server":"graphite.example.com",
    "port":"2003"
 }
}
```

**handler-graphite-notify**
```
{
 "graphite_notify": {
    "host":"graphite.example.com",
    "port":"2003",
    "prefix":"sensu.events"
 }
}
```

**handler-graphite-status**
```
{
 "graphite_status": {
    "host":"graphite.example.com",
    "port":"2003",
    "prefix":"sensu.events"
 }
}
```

TCP handler (preferred)
```
{
  "graphite_event": {
    "server_uri": "https://graphite.example.com:443/events/",
    "tags": [
      "custom_tag_a",
      "custom_tag_b"
    ]
  },
  "handlers":
  {
    "default": {
      "type": "set",
{'fraction_non_alphanumeric': 0.20324379118094274, 'fraction_numerical': 0.00912316269640142, 'mean_word_length': 4.1662303664921465, 'pattern_counts': {'":': 40, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 22, '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': '433525', 'n_tokens_mistral': 1574, 'n_tokens_neox': 1473, 'n_words': 120}