# minigun-plugin-statsd

> Statsd output plugin for Minigun

Latest version **1.0.0** (published 2015-09-20) · ISC license · 0 weekly downloads

## Install

```sh
npm install minigun-plugin-statsd
pnpm add minigun-plugin-statsd
yarn add minigun-plugin-statsd
bun add minigun-plugin-statsd
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2015-09-20 |
| First published | 2015-09-20 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 3 |
| Known vulnerabilities | 0 (+7 in 2 direct dependencies) |
| Install scripts | no |
| Author | Hassy Veldstra |
| Maintainers | hhvhhv |
| Keywords | statsd, minigun |

## Links

- npm: https://www.npmjs.com/package/minigun-plugin-statsd
- npm.io page: https://npm.io/package/minigun-plugin-statsd

## Dependencies (3)

- [lynx](https://npm.io/package/lynx.md) ^0.2.0
- [debug](https://npm.io/package/debug.md) 2.2.0
- [lodash](https://npm.io/package/lodash.md) 3.10.1

## Recent versions

- 1.0.0 (latest) — 2015-09-20

## README

# StatsD output for Minigun stats

This [Minigun](https://artillery.io/minigun) plugin allows you to publish the
stats produced by Minigun to StatsD in real-time.

## Usage

Enable the plugin by adding it in your test script's `config.plugins` section:

```javascript
{
  "config": {
    // ...
    "plugins": {
      "statsd": {
        "host": "localhost",
        "port": 8125,
        "prefix": "minigun"
      }
    }
  }
  // ...
}
```

`host`, `port`, and `prefix` are optional; the values above are the defaults.

### Published metrics

- `scenariosCreated`
- `scenariosCompleted`
- `requestsCompleted`
- `latency.min`
- `latency.max`
- `latency.median`
- `latency.p95`
- `latency.p99`
- `errors.ECONNREFUSED`, `errors.ETIMEDOUT` etc

### Using with Librato

This plugin can be used to publish metrics to [Librato](https://www.librato.com):

0. Install StatsD with:

  `npm install statsd`

1. Add Librato backend to StatsD:

  `cd /path/to/statsd`
  `npm install statsd-librato-backend`

  Enable the backend in your StatsD config:

  ```javascript
  {
    librato: {
      email:  "mylibrato@email.com",
      token:  "a161e2bc22b1bdd0cfe90412token10498token22dd52cat792doge1ab5a1d32"
    },
    backends: ['statsd-librato-backend']
  }
  ```

3. Run StatsD and use Minigun with this plugin.

## License

**minigun-plugin-statsd** is distributed under the terms of the
[ISC](http://en.wikipedia.org/wiki/ISC_license) license.

---
_Source: https://npm.io/package/minigun-plugin-statsd · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
