Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/amine7536/sensu-extensions-graphite
This Extensions use Graphite plaintext protocol to relay metrics. It opens a presistant TCP connection to Graphite to send its metrics.
https://github.com/amine7536/sensu-extensions-graphite
graphite sensu sensu-plugins
Last synced: 11 days ago
JSON representation
This Extensions use Graphite plaintext protocol to relay metrics. It opens a presistant TCP connection to Graphite to send its metrics.
- Host: GitHub
- URL: https://github.com/amine7536/sensu-extensions-graphite
- Owner: amine7536
- License: mit
- Created: 2017-07-17T12:23:47.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2017-08-28T12:05:45.000Z (about 7 years ago)
- Last Synced: 2024-04-29T14:22:47.191Z (6 months ago)
- Topics: graphite, sensu, sensu-plugins
- Language: Ruby
- Homepage:
- Size: 7.81 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# Sensu::Extensions::Graphite
This Extensions use Graphite `plaintext` protocol to relay metrics. It opens a presistant TCP connection to Graphite to send its metrics.
This extensions is a ripoff :
- [https://github.com/sendgrid-ops/sensu-metrics-relay/](https://github.com/sendgrid-ops/sensu-metrics-relay/)
- [https://github.com/lusis/sensu_influxdb_handler](https://github.com/lusis/sensu_influxdb_handler)## Install
1. Using RubyGem (using sensu vendor ruby) :
```bash
$> /opt/sensu/embedded/bin/gem install sensu-extensions-graphite
```2. Using RPM :
```bash
$> rpm -Uvh https://github.com/amine7536/sensu-extensions-graphite/releases/download/v0.0.2/rubygem-sensu-extensions-graphite-0.0.2-1.noarch.rpm
```## Configuration
1. Enable the extension :
Add the following to your Sensu configuration `/etc/sensu/conf.d/extensions.json` :
```json
{
"extensions": {
"graphite": {
"gem": "sensu-extensions-graphite"
}
}
}
```2. Configure the extention :
Add the following to your Sensu configuration `/etc/sensu/conf.d/graphite.json` :
```json
{
"graphite": {
"name": "graphite",
"host": "192.168.43.21",
"port": 9000
}
}
```3. Example metric :
```json
{
"checks": {
"vmstat_metrics": {
"type": "metric",
"handlers": ["graphite"],
"command": "/etc/sensu/plugins/vmstat-metrics.rb --scheme stats.:::name:::",
"interval": 10,
"subscribers": ["all"]
}
}
}
```