aracoool/telegraf-logger

Helps to collects a data for telegraf and put it into the log files

Installs: 386

Dependents: 0

Suggesters: 0

Security: 0

Stars: 1

Watchers: 1

Forks: 0

Open Issues: 0

pkg:composer/aracoool/telegraf-logger

1.1.4 2018-03-09 16:06 UTC

This package is auto-updated.

Last update: 2025-10-13 05:32:31 UTC


README

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