NAME

Measure::Everything::Adapter::InfluxDB::Direct - Send stats directly to InfluxDB via http

VERSION

version 1.001

SYNOPSIS

Measure::Everything::Adapter->set( 'InfluxDB::Direct',
    host => 'influx.example.com',
    port => 8086,
    db   => 'conversions',
);

use Measure::Everything qw($stats);
$stats->write('metric', 1);

DESCRIPTION

Send stats directly to InfluxDB. No buffering whatsoever, so there is one HTTP request per call to $stats->write. This might be a bad idea.

If a request fails, it will be logged using Log::Any, but no further error handling is done. The metric will be lost.

OPTIONS

Set these options when setting your adapter via Measure::Everything::Adapter->set

AUTHOR

Thomas Klausner domm@plix.at

COPYRIGHT AND LICENSE

This software is copyright (c) 2016 - 2021 by Thomas Klausner.

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