Skip to content

Commit

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

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
  • Loading branch information
tyldum committed Jan 4, 2018
1 parent ada3d4d commit a5c9253
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
4 changes: 4 additions & 0 deletions Changes
Expand Up @@ -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

Expand Down
8 changes: 4 additions & 4 deletions README.md
Expand Up @@ -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.

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

0 comments on commit a5c9253

Please sign in to comment.