MemSQL StatsD Backend
This is a pluggable backend for StatsD, which sends stats to MemSQL Ops.
Requirements
Installation
$ cd /path/to/statsd
$ npm install memsql-statsd
Configuration
You have to add the following basic configuration information to your
StatsD config file.
{
memsql: {
host: "<MASTER AGGREGATOR IP/HOSTNAME>",
port: <MASTER AGGREGATOR PORT>,
user: "<MASTER AGGREGATOR USERNAME>",
password: "<MASTER AGGREGATOR PASSWORD>",
database: "<MEMSQL OPS DATABASE NAME>"
}
}
Enabling
Add memsql-statsd
backend to the list of StatsD
backends in the StatsD configuration file:
{
backends: ["memsql-statsd"]
}
Start/restart the statsd daemon and your StatsD metrics should now be
pushed to your MemSQL Ops dashboard.
NPM Dependencies
- mysql-libmysqlclient >= 1.5.2
- lodash >= 2.1.0
- generic-pool >= 2.0.4
- mapper >= 0.2.5
Development
Contributing:
- Fork the project
- Make your feature addition or bug fix
- Commit. Do not mess with package.json, version, or history.
- Send a pull request. Bonus points for topic branches.