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
- Host: GitHub
- URL: https://github.com/tkuchiki/mackerel-plugin-rack-stats
- Owner: tkuchiki
- License: apache-2.0
- Created: 2015-12-11T08:18:05.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2018-10-26T00:54:22.000Z (over 6 years ago)
- Last Synced: 2025-03-25T22:21:59.807Z (3 months ago)
- Topics: golang, mackerel, mackerel-plugin, rack, stats
- Language: Go
- Size: 13.7 KB
- Stars: 4
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# mackerel-plugin-rack-stats
[](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"
```