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

https://github.com/one-com/plack-middleware-accesslog-statsd

Log request info to StatsD
https://github.com/one-com/plack-middleware-accesslog-statsd

Last synced: about 1 year ago
JSON representation

Log request info to StatsD

Awesome Lists containing this project

README

          

NAME
Plack::Middleware::AccessLog::StatsD - Logs requests to StatsD server

SYNOPSIS
#in app.psgi
use Plack::Builder;

builder {
enable "Plack::Middleware::AccessLog::StatsD",
host => 'statsd.example.net',
port => 8125,
prefix => 'my_app';

$app;
};

DESCRIPTION
Plack::Middleware::AccessLog::StatsD logs information about individual
requests to a StatsD server. Currently the following metrics are logged:

.response. (counter)
.response_time. (timer)
.response_time. (timer)

CONFIGURATION
The following configuration parameters are available:

host
Hostname for the StatsD server

port (default: 8125)
Port the StatsD server is listeneing on

prefix
Prefix for the keys added to StatsD

SEE ALSO

AUTHOR
Peter Makholm

COPYRIGHT AND LICENSE
Copyright (C) 2012 by Peter Makholm.

This program is free software; you can redistribute it and/or modify it
under the same terms as Perl itself.