Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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.8.9
type OtelMonitor struct {
// contains filtered or unexported fields
}
OtelMonitor represents the otel monitor.
func NewOtelMonitor ¶ added in v0.8.9
func NewOtelMonitor() *OtelMonitor
func (*OtelMonitor) RecordPlugin ¶ added in v0.8.9
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.8.9
func (m *OtelMonitor) RecordRun(ctx context.Context, run agent.Run)
RecordRun records a run behavior
func (*OtelMonitor) RecordSinkRetryCount ¶ added in v0.8.9
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.8.9
func (*StatsdMonitor) RecordSinkRetryCount(context.Context, agent.PluginInfo)
Click to show internal directories.
Click to hide internal directories.