file

package
v0.0.0-...-5864974 Latest Latest
Warning

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

Go to latest
Published: Aug 9, 2019 License: MIT Imports: 6 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 File

type File struct {
	Files []string
	// contains filtered or unexported fields
}

func (*File) Close

func (f *File) Close() error

func (*File) Connect

func (f *File) Connect() error

func (*File) Description

func (f *File) Description() string

func (*File) SampleConfig

func (f *File) SampleConfig() string

func (*File) SetSerializer

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

func (*File) Write

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

Jump to

Keyboard shortcuts

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