diff --git a/Changes b/Changes index f48ab0f..dfb51dd 100644 --- a/Changes +++ b/Changes @@ -2,6 +2,9 @@ Revision history for Perl extension Mojolicious-Plugin-Prometheus {{$NEXT}} +1.3.0 2020-04-12T18:23:31Z + - Add support for custom route object (thanks @toshikFedotov) + 1.2.2 2019-06-19T11:11:26Z - Make test suite pass on osx diff --git a/README.md b/README.md index 9409f06..ff453e9 100644 --- a/README.md +++ b/README.md @@ -76,11 +76,6 @@ Register plugin in [Mojolicious](https://metacpan.org/pod/Mojolicious) applicati Key used for shared memory access between workers, see [$key in IPc::ShareLite](https://metacpan.org/pod/IPC::ShareLite) for details. -- route - - [Mojolicious::Routes::Route](https://metacpan.org/pod/Mojolicious::Routes::Route) object to attach the metrics to, defaults to generating a new one for '/'. - - # METRICS In addition to exposing the default process metrics that [Net::Prometheus](https://metacpan.org/pod/Net::Prometheus) already expose diff --git a/lib/Mojolicious/Plugin/Prometheus.pm b/lib/Mojolicious/Plugin/Prometheus.pm index a8509e2..99fc895 100644 --- a/lib/Mojolicious/Plugin/Prometheus.pm +++ b/lib/Mojolicious/Plugin/Prometheus.pm @@ -4,7 +4,7 @@ use Time::HiRes qw/gettimeofday tv_interval/; use Net::Prometheus; use IPC::ShareLite; -our $VERSION = '1.2.2'; +our $VERSION = '1.3.0'; has prometheus => sub { Net::Prometheus->new(disable_process_collector => 1) }; has route => sub {undef};