Bug#1036965: ITP: libplack-middleware-prometheus-requesttimes-perl -- Perl module that records response times with a prometheus histogram
Package: wnpp
Owner: Mason James <mtj@kohaaloha.com>
Severity: wishlist
X-Debbugs-CC: debian-devel@lists.debian.org, debian-perl@lists.debian.org
* Package name : libplack-middleware-prometheus-requesttimes-perl
Version : 0.0001
Upstream Author : Colin Newell <colin@opusvl.com>
* URL : https://metacpan.org/release/Plack-Middleware-Prometheus-RequestTimes
* License : Artistic or GPL-1+
Programming Lang: Perl
Description : Perl module that records response times with a prometheus histogram
To setup a prometheus metrics app in your PSGI application, hook this
Plack::Middleware::Prometheus::RequestTimes middleware up with a histogram and
the metrics can report on your response times.
use strict;
use warnings;
use My::Website;
use Net::Prometheus;
use Net::Prometheus::ProcessCollector;
my $client = Net::Prometheus->new;
$client->register( Net::Prometheus::ProcessCollector->new(
prefix => "parent_process",
pid => getppid(),
) );
my $response_times = $client->new_histogram(
name => "response_times",
help => "Application response times",
);
--
Generated with the help of dpt-gen-itp(1) from pkg-perl-tools.
Reply to: