The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Mail::Milter::Authentication::Metric

VERSION

version 2.20180511

DESCRIPTION

Handle metrics collection and production for prometheus

CONSTRUCTOR

new()

my $object = Mail::Milter::Authentication::Metric->new();

Creates a new metric object.

METHODS

count( $id, $labels, $server )

Increment the metric for the given counter Called from the base handler, do not call directly. $server is the current handler object

register_metrics( $hash )

Register a new set of metric types and help texts. Called from the master process in the setup phase.

master_handler( $request, $socket, $server )

Handle a request for metrics from a child in the master process.

child_handler( $server )

Handle a request for metrics in a child process.

AUTHOR

Marc Bradshaw <marc@marcbradshaw.net>

COPYRIGHT AND LICENSE

This software is copyright (c) 2018 by Marc Bradshaw.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.