A prefix applied to all recorded metrics. This a simple string
concatenation, so if you want to namespace, add the trailing .
character yourself. It defaults to your $app->moniker, followed by ..
The helper name to be installed. Defaults to 'stats'
ADDITIONAL OPTIONS
Any further options are passed to the "adapter" during construction,
unless you've passed an object already. Refer to the adapter
documentation for supported options.
ATTRIBUTES
Mojolicious::Plugin::Statsd has the following attributes, which are
best configured through the plugin options above.
Send a gauge update. Some receiving servers accept sending a signed
value rather than an absolute value, and this is supported. Note that
on those servers, in order to reach a negative value, you must update
to 0 first.
In any place a metric name is specified, it can be substituted with an
arrayref in order to update several metrics in a single packet,
provided your server supports it.
EXAMPLE
use Mojolicious::Lite;
plugin 'Statsd';
hook after_dispatch => sub {
my ($c) = @_;
$c->stats->increment('path.' . $c->req->url->path);
};