diff --git a/Changes b/Changes index 7228446..d6ea62d 100644 --- a/Changes +++ b/Changes @@ -2,6 +2,10 @@ Revision history for Perl extension Mojolicious-Plugin-Prometheus {{$NEXT}} +1.0.4 2018-01-04T12:28:52Z + - Reformat code with Mojo perltidy settings + - Minor documentation updates + 1.0.3 2017-12-22T09:08:46Z - Require at least 0.05 of Net::Prometheus diff --git a/README.md b/README.md index eae48c1..36c0d50 100644 --- a/README.md +++ b/README.md @@ -34,7 +34,7 @@ See [Net::Prometheus](https://metacpan.org/pod/Net::Prometheus) for usage. ## register - $plugin->register($app, \&config); + $plugin->register($app, \%config); Register plugin in [Mojolicious](https://metacpan.org/pod/Mojolicious) application. @@ -70,12 +70,12 @@ Register plugin in [Mojolicious](https://metacpan.org/pod/Mojolicious) applicati Override buckets for request duration histogram. - Default: `(0.005, 0.01, 0.025, 0.05, 0.075, 0.1, 0.25, 0.5, 0.75, 1.0, 2.5, 5.0, 7.5, 10)` + Default: `(0.005, 0.01, 0.025, 0.05, 0.075, 0.1, 0.25, 0.5, 0.75, 1.0, 2.5, 5.0, 7.5, 10)` (actually see [Net::Prometheus](https://metacpan.org/source/PEVANS/Net-Prometheus-0.05/lib/Net/Prometheus/Histogram.pm#L19)) # METRICS -In addition to exporting the default process metrics that [Net::Prometheus](https://metacpan.org/pod/Net::Prometheus) already export -this plugin will also export +In addition to exposing the default process metrics that [Net::Prometheus](https://metacpan.org/pod/Net::Prometheus) already expose +this plugin will also expose - `http_requests_total`, request counter partitioned over HTTP method and HTTP response code - `http_request_duration_seconds`, request duration histogram partitoned over HTTP method diff --git a/lib/Mojolicious/Plugin/Prometheus.pm b/lib/Mojolicious/Plugin/Prometheus.pm index 5804cda..e3ad6b0 100644 --- a/lib/Mojolicious/Plugin/Prometheus.pm +++ b/lib/Mojolicious/Plugin/Prometheus.pm @@ -3,7 +3,7 @@ use Mojo::Base 'Mojolicious::Plugin'; use Time::HiRes qw/gettimeofday tv_interval/; use Net::Prometheus; -our $VERSION = '1.0.3'; +our $VERSION = '1.0.4'; has prometheus => sub { state $prom = Net::Prometheus->new }; has route => sub {undef};