rollingfile

package
v0.0.0-...-12ddfe4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 4, 2020 License: MIT Imports: 12 Imported by: 0

README

file Output Plugin

This plugin writes telegraf metrics to files

Configuration
[[outputs.file]]
  ## Files to write to, "stdout" is a specially handled file.
  files = ["stdout", "/tmp/metrics.out"]

  ## Data format to output.
  ## Each data format has its own unique set of configuration options, read
  ## more about them here:
  ## https://github.com/influxdata/telegraf/blob/master/docs/DATA_FORMATS_OUTPUT.md
  data_format = "influx"

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RollingFile

type RollingFile struct {
	Header         string
	MaxFileSize    int
	MaxFileTime    int
	OpenDirectory  string
	OpenExtension  string
	CloseDirectory string
	CloseExtension string
	HostName       string
	FileName       string
	// contains filtered or unexported fields
}

func (*RollingFile) Close

func (f *RollingFile) Close() error

func (*RollingFile) Connect

func (f *RollingFile) Connect() error

func (*RollingFile) Description

func (f *RollingFile) Description() string

func (*RollingFile) Open

func (f *RollingFile) Open() error

func (*RollingFile) SampleConfig

func (f *RollingFile) SampleConfig() string

func (*RollingFile) SetSerializer

func (f *RollingFile) SetSerializer(serializer serializers.Serializer)

func (*RollingFile) Write

func (f *RollingFile) Write(metrics []telegraf.Metric) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL