Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ForwarderDims ¶
ForwarderDims are the common stat dimensions we expect on forwarder protocols
Types ¶
type CloseableHealthCheck ¶ added in v0.9.14
type CloseableHealthCheck struct {
// contains filtered or unexported fields
}
CloseableHealthCheck is a helper class intended to be used as an anonymous field
func (*CloseableHealthCheck) CloseHealthCheck ¶ added in v0.9.14
func (c *CloseableHealthCheck) CloseHealthCheck()
CloseHealthCheck is called to change the status of the healthcheck from 200 to 404 and close the connection
func (*CloseableHealthCheck) HealthDatapoints ¶ added in v0.9.14
func (c *CloseableHealthCheck) HealthDatapoints() []*datapoint.Datapoint
HealthDatapoints returns the total health checks done
func (*CloseableHealthCheck) SetupHealthCheck ¶ added in v0.9.14
func (c *CloseableHealthCheck) SetupHealthCheck(healthCheck *string, r *mux.Router, logger log.Logger)
SetupHealthCheck sets up a closeable healthcheck, when open returns 200, when closed returns 404 and close the connection
type DatapointForwarder ¶ added in v0.9.0
DatapointForwarder can send datapoints and not events
type Forwarder ¶
Forwarder is the basic interface endpoints must support for the proxy to forward to them
type HealthChecker ¶ added in v0.9.14
type HealthChecker interface {
CloseHealthCheck()
}
HealthChecker interface is anything that exports a healthcheck that would need to be invalidated on graceful shutdown
type Listener ¶
type Listener interface { sfxclient.Collector io.Closer HealthChecker }
Listener is the basic interface anything that listens for new metrics must implement
type Pipeline ¶ added in v0.9.14
type Pipeline interface {
Pipeline() int64
}
Pipeline returns the number of items still in flight that need to be drained
type UneventfulForwarder ¶ added in v0.9.0
type UneventfulForwarder struct {
DatapointForwarder
}
UneventfulForwarder converts a datapoint only forwarder into a datapoint/event forwarder
func (*UneventfulForwarder) Pipeline ¶ added in v0.9.14
func (u *UneventfulForwarder) Pipeline() int64
Pipeline returns zero since UneventfulForwarder doesn't have it's own buffer