Skip to content

ARACOOOL/telegraf-logger

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Logger for telegraf

Helps to collect a data for telegraf. Puts the data into log files.

Usage

use Neat\Profiler\Formatter;
use Neat\Profiler\Profiler;
use Neat\Profiler\Stream\FileStream;

$profiler = new Profiler('measurement_name', new FileStream(__DIR__ . '/logs', new Formatter()));
// your code

$profiler->finish();

Telegraf input setting

https://github.com/influxdata/telegraf/tree/master/plugins/inputs/tail