wavefront

package
v1.2.23 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2020 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Listener

type Listener struct {
	protocol.CloseableHealthCheck
	// contains filtered or unexported fields
}

Listener once setup will listen for wavefront protocol points to forward on

func NewListener

func NewListener(sendTo dpsink.Sink, passedConf *ListenerConfig) (*Listener, error)

NewListener creates a new listener for wavefront datapoints

func (*Listener) Addr

func (listener *Listener) Addr() net.Addr

Addr returns the listening address of this wavefront listener

func (*Listener) Close

func (listener *Listener) Close() error

Close the exposed wavefront port

func (*Listener) Datapoints

func (listener *Listener) Datapoints() []*datapoint.Datapoint

Datapoints reports information about the total points seen by wavefront

func (*Listener) DebugDatapoints added in v1.2.11

func (listener *Listener) DebugDatapoints() []*datapoint.Datapoint

DebugDatapoints returns datapoints that are used for debugging the listener

func (*Listener) DefaultDatapoints added in v1.2.11

func (listener *Listener) DefaultDatapoints() []*datapoint.Datapoint

DefaultDatapoints returns datapoints that should always be reported from the listener

type ListenerConfig

type ListenerConfig struct {
	ServerAcceptDeadline      *time.Duration
	ConnectionTimeout         *time.Duration
	ListenAddr                *string
	Logger                    log.Logger
	ExtractCollectdDimensions *bool
}

ListenerConfig controls optional parameters for wavefront listeners

Jump to

Keyboard shortcuts

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