amon

package
v1.37.0 Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2025 License: MIT Imports: 11 Imported by: 187

README

Amon Output Plugin

This plugin writes metrics to Amon monitoring platform. It requires a serverkey and amoninstance URL which can be obtained from the website for your account.

[!IMPORTANT] If point values being sent cannot be converted to a float64, the metric is skipped.

⭐ Telegraf v0.2.1 🚩 Telegraf v1.37.0 🔥 Telegraf v1.40.0 🏷️ datastore 💻 all

Global configuration options

Plugins support additional global and plugin configuration settings for tasks such as modifying metrics, tags, and fields, creating aliases, and configuring plugin ordering. See CONFIGURATION.md for more details.

Configuration

# Configuration for Amon Server to send metrics to.
[[outputs.amon]]
  ## Amon Server Key
  server_key = "my-server-key" # required.

  ## Amon Instance URL
  amon_instance = "https://youramoninstance" # required

  ## Connection timeout.
  # timeout = "5s"

Conversions

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 (*Amon) Close() error

func (*Amon) Connect

func (a *Amon) Connect() error

func (*Amon) SampleConfig

func (*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