circonus

package
v0.0.23 Latest Latest
Warning

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

Go to latest
Published: May 19, 2021 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Initialize

func Initialize(cfg *config.CirconusConfig, err error) error

func NewMetricDestination

func NewMetricDestination(id, name, instanceID, checkNamePrefix string, logger cua.Logger) (*trapmetrics.TrapMetrics, error)

NewMetricDestination will find/retrieve/create a new circonus check bundle and add it to a trap metrics instance to be used as a metric destination.

id = the plugin's actual id/name (e.g. inputs.cpu would be cpu, inputs.snmp would be snmp)
name = a vanity name used in the display name of the check
instanceID = plugin's instance_id setting from the config
checkNamePrefix = used in the display name and target of the check
logger = an instance of cua logger (already configured for the plugin requesting the metric destination)

func Ready

func Ready() bool

Types

type Circonus

type Circonus struct {
	sync.Mutex
	// contains filtered or unexported fields
}

type Logshim

type Logshim struct {
	// contains filtered or unexported fields
}

Logshim is for api and traps - it uses the info level and agent debug logging are controlled independently

func (Logshim) Debugf

func (l Logshim) Debugf(fmt string, args ...interface{})

func (Logshim) Errorf

func (l Logshim) Errorf(fmt string, args ...interface{})

func (Logshim) Infof

func (l Logshim) Infof(fmt string, args ...interface{})

func (Logshim) Printf

func (l Logshim) Printf(fmt string, args ...interface{})

func (Logshim) Warnf

func (l Logshim) Warnf(fmt string, args ...interface{})

Jump to

Keyboard shortcuts

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