tkuchiki / mackerel-plugin-rack-stats

Unicorn metrics plugin for mackerel.io agent

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

mackerel-plugin-rack-stats

Build Status

Rack servers metrics plugin for mackerel.io agent.
Only work on Linux.
Inspired by mackerel-plugin-nginx.

Synopsis

mackerel-plugin-rack-stats [-address=<url or unix domain socket>] [-path=<path>] [-metric-key=<metric-key>]  [-tempfile=<tempfile>]
$ ./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

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"

About

Unicorn metrics plugin for mackerel.io agent

License:Apache License 2.0


Languages

Language:Go 100.0%