amon

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: 9 Imported by: 0

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
	AmonInstance string
	Timeout      internal.Duration
	// 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