Skip to content

Commit

Permalink
Checking in changes prior to tagging of version 1.3.0.
Browse files Browse the repository at this point in the history
Changelog diff is:

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
  • Loading branch information
tyldum committed Apr 12, 2020
1 parent a7d07c4 commit 477cb86
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
3 changes: 3 additions & 0 deletions Changes
Expand Up @@ -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

Expand Down
5 changes: 0 additions & 5 deletions README.md
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion lib/Mojolicious/Plugin/Prometheus.pm
Expand Up @@ -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};
Expand Down

0 comments on commit 477cb86

Please sign in to comment.