execd

package
v1.17.8 Latest Latest
Warning

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

Go to latest
Published: Feb 16, 2021 License: MIT Imports: 10 Imported by: 0

README

Execd Output Plugin

The execd plugin runs an external program as a daemon.

Telegraf minimum version: Telegraf 1.15.0

Configuration:
[[outputs.execd]]
  ## One program to run as daemon.
  ## NOTE: process and each argument should each be their own string
  command = ["my-telegraf-output", "--some-flag", "value"]

  ## Delay before the process is restarted after an unexpected termination
  restart_delay = "10s"

  ## Data format to export.
  ## 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"
Example

see examples

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Execd

type Execd struct {
	Command      []string        `toml:"command"`
	RestartDelay config.Duration `toml:"restart_delay"`
	Log          telegraf.Logger
	// contains filtered or unexported fields
}

func (*Execd) Close

func (e *Execd) Close() error

func (*Execd) Connect

func (e *Execd) Connect() error

func (*Execd) Description

func (e *Execd) Description() string

func (*Execd) Init

func (e *Execd) Init() error

func (*Execd) SampleConfig

func (e *Execd) SampleConfig() string

func (*Execd) SetSerializer

func (e *Execd) SetSerializer(s serializers.Serializer)

func (*Execd) Write

func (e *Execd) Write(metrics []telegraf.Metric) error

Jump to

Keyboard shortcuts

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