metrics

package
v0.8.4 Latest Latest
Warning

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

Go to latest
Published: May 24, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewStatsdClient

func NewStatsdClient(statsdAddress string) (c *statsd.StatsdClient, err error)

NewStatsdClient returns a new statsd client if the given address is valid

Types

type StatsdMonitor

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

StatsdMonitor represents the statsd monitor.

func NewStatsdMonitor

func NewStatsdMonitor(client statsdClient, prefix string) *StatsdMonitor

NewStatsdMonitor creates a new StatsdMonitor

func (*StatsdMonitor) RecordPlugin

func (m *StatsdMonitor) RecordPlugin(recipeName, pluginName, pluginType string, success bool)

RecordPlugin records a individual plugin behavior in a run

func (*StatsdMonitor) RecordRun

func (m *StatsdMonitor) RecordRun(run agent.Run)

RecordRun records a run behavior

Jump to

Keyboard shortcuts

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