metrics

package
v0.9.2 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitOtel added in v0.9.1

func InitOtel(ctx context.Context, cfg config.Config, logger *log.Logrus, appVersion string) (func(), error)

func NewStatsdClient

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

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

Types

type OtelMonitor added in v0.9.1

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

OtelMonitor represents the otel monitor.

func NewOtelMonitor added in v0.9.1

func NewOtelMonitor() *OtelMonitor

func (*OtelMonitor) RecordPlugin added in v0.9.1

func (*OtelMonitor) RecordPlugin(context.Context, agent.PluginInfo)

RecordPlugin records a individual plugin behavior in a run, this is being handled in otelmw

func (*OtelMonitor) RecordRun added in v0.9.1

func (m *OtelMonitor) RecordRun(ctx context.Context, run agent.Run)

RecordRun records a run behavior

func (*OtelMonitor) RecordSinkRetryCount added in v0.9.1

func (m *OtelMonitor) RecordSinkRetryCount(ctx context.Context, pluginInfo agent.PluginInfo)

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(_ context.Context, pluginInfo agent.PluginInfo)

RecordPlugin records a individual plugin behavior in a run

func (*StatsdMonitor) RecordRun

func (m *StatsdMonitor) RecordRun(_ context.Context, run agent.Run)

RecordRun records a run behavior

func (*StatsdMonitor) RecordSinkRetryCount added in v0.9.1

func (*StatsdMonitor) RecordSinkRetryCount(context.Context, agent.PluginInfo)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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