An open API service indexing awesome lists of open source software.

https://github.com/tkuchiki/mackerel-plugin-rack-stats

Unicorn metrics plugin for mackerel.io agent
https://github.com/tkuchiki/mackerel-plugin-rack-stats

golang mackerel mackerel-plugin rack stats

Last synced: 2 months ago
JSON representation

Unicorn metrics plugin for mackerel.io agent

Awesome Lists containing this project

README

        

# mackerel-plugin-rack-stats

[![Build Status](https://travis-ci.org/tkuchiki/mackerel-plugin-rack-stats.svg?branch=master)](https://travis-ci.org/tkuchiki/mackerel-plugin-rack-stats)

Rack servers metrics plugin for mackerel.io agent.
Only work on Linux.
Inspired by [mackerel-plugin-nginx](https://github.com/mackerelio/mackerel-agent-plugins/tree/master/mackerel-plugin-nginx).

## Synopsis

```shell
mackerel-plugin-rack-stats [-address=] [-path=] [-metric-key=] [-tempfile=]
```

```shell
$ ./mackerel-plugin-rack-stats --help
Usage of ./mackerel-plugin-rack-stats:
-address string
URL or Unix Domain Socket (default "http://localhost:8080")
-metric-key string
Metric Key
-path string
Path (default "/_raindrops")
-tempfile string
Temp file name
-version
Version
```

## Requirements

- [raindrops](https://rubygems.org/gems/raindrops)

## Example of mackerel-agent.conf

```
[plugin.metrics.rack_stats]
command = "/path/to/mackerel-plugin-rack-stats -address=unix:/path/to/unicorn.sock"
```

```
[plugin.metrics.rack_stats]
command = "/path/to/mackerel-plugin-rack-stats -address=http://localhost:8080"
```