Mail::Milter::Authentication::Metric
version 20191206
Handle metrics collection and production for prometheus
my $object = Mail::Milter::Authentication::Metric->new();
Create a new Mail::Milter::Authentication::Metric object This object is used to store, modify, and report metrics.
Returns the current value of timeout for metrics operations.
Given a string, return a version of that string which is safe to use as a metrics label.
Increment the metric for the given counter Called from the base handler, do not call directly. $server is the current handler object
count_id - the name of the metric to act on labels - hashref of labels to apply server - the current server object count - number to increment by (defaults to 1)
Send metrics to the parent server process.
Register a new set of metric types and help texts. Called from the master process in the setup phase.
Expects a hashref of metric description, keyed on metric name.
Called in the master process to periodically update some metrics
Handle a metrics or http request in the child process.
Marc Bradshaw <marc@marcbradshaw.net>
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.
To install Mail::Milter::Authentication, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Mail::Milter::Authentication
CPAN shell
perl -MCPAN -e shell install Mail::Milter::Authentication
For more information on module installation, please visit the detailed CPAN module installation guide.