NAME
Mail::Milter::Authentication::Metric
VERSION
version 2.20181114
DESCRIPTION
Handle metrics collection and production for prometheus
CONSTRUCTOR
new()
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.
METHODS
get_timeout()
Returns the current value of timeout for metrics operations.
clean_label($text)
Given a string, return a version of that string which is safe to use as a metrics label.
count($args)
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( $server )
Send metrics to the parent server process.
register_metrics( $hash )
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.
master_metric_update( $server )
Called in the master process to periodically update some metrics
child_handler( $server)
Handle a metrics or http request in the 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.