Metrics::Any::Adapter::Tee - send metrics to multiple adapters
Metrics::Any::Adapter::Tee
use Metrics::Any::Adapter 'Tee', "Prometheus", [ "File", path => "metrics.log" ], "Statsd";
This Metrics::Any adapter type acts as a container for multiple other adapters, allowing an application to report its metrics via multiple different mechanisms at the same time.
Each value passed in the import list should either be an adapter type string or an array reference containing the name and additional arguments.
Adapters specified by string are split in the same way as Metrics::Any::Adapter splits the METRICS_ANY_ADAPTER environment variable; namely by parsing optional arguments after a colon, separated by commas or equals signs. E.g.
METRICS_ANY_ADAPTER
"File:path=metrics.log"
would be equivalent to the version given in the synopsis above.
Paul Evans <leonerd@leonerd.org.uk>
To install Metrics::Any, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Metrics::Any
CPAN shell
perl -MCPAN -e shell install Metrics::Any
For more information on module installation, please visit the detailed CPAN module installation guide.