rics within any event-driven Perl application, as well as the
reporting of those statistics via a JSON-over-HTTP API for consumption by
external systems monitoring tools.
Using Monitor::MetricsAPI fi
Routes;
$Monitor::MetricsAPI::Server::Routes::VERSION = '0.900';
use Dancer2;
set serializer => 'JSON';
=head1 NAME
Monitor::MetricsAPI::Server::Routes
=head1 SYNOPSIS
You should not interact wit
s are provided by this server for viewing the collected
metrics.
=cut
=head2 /
Returns a small JSON structure with metadata about the metrics collector. May
be used as a heartbeat for the service,
on.
From the operator's perspective, Monitor::MetricsAPI provides an HTTP API which
can spit out JSON showing some or all of the values the application developer
has decided to track. "There are 5,61
are omitted from the examples above for brevity.]
And because you can get these metrics back in JSON at any time you wish simply
by calling the API, instead of having to consume logs or wait for you