mackerel-plugin-plack

command
v0.18.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 10, 2016 License: Apache-2.0 Imports: 9 Imported by: 0

README

mackerel-plugin-plack

Plack custom metrics plugin for mackerel.io agent.

Synopsis

mackerel-plugin-plack [-host=<host>] [-port=<port>] [-path=<path?json>] [-scheme=<http|https>]

Requirements

This plugin requires Plack::Middleware::ServerStatus::Lite > 0.07. Enable ServerStatus::Lite as below.

use Plack::Builder;
builder {
    enable "Plack::Middleware::ServerStatus::Lite",
    path => '/server-status',
    allow => [ '127.0.0.1' ],
    counter_file => '/tmp/counter_file',
    scoreboard => '/var/run/server';
    $app;
};

Example of mackerel-agent.conf

[plugin.metrics.plack]
command = "/path/to/mackerel-plugin-plack -port=8000 -path='/status?auto'"

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL