amon

package
v1.19.0-rc0 Latest Latest
Warning

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

Go to latest
Published: Jun 4, 2021 License: MIT Imports: 9 Imported by: 186

README

Amon Output Plugin

This plugin writes to Amon and requires an serverkey and amoninstance URL which can be obtained here for the account.

If the point value being sent cannot be converted to a float64, the metric is skipped.

Metrics are grouped by converting any _ characters to . in the Point Name.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Amon

type Amon struct {
	ServerKey    string          `toml:"server_key"`
	AmonInstance string          `toml:"amon_instance"`
	Timeout      config.Duration `toml:"timeout"`
	Log          telegraf.Logger `toml:"-"`
	// contains filtered or unexported fields
}

func (*Amon) Close

func (a *Amon) Close() error

func (*Amon) Connect

func (a *Amon) Connect() error

func (*Amon) Description

func (a *Amon) Description() string

func (*Amon) SampleConfig

func (a *Amon) SampleConfig() string

func (*Amon) Write

func (a *Amon) Write(metrics []telegraf.Metric) error

type Metric

type Metric struct {
	Metric string   `json:"metric"`
	Points [1]Point `json:"metrics"`
}

type Point

type Point [2]float64

type TimeSeries

type TimeSeries struct {
	Series []*Metric `json:"series"`
}

Jump to

Keyboard shortcuts

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