Documentation ¶
Overview ¶
This file only wraps all the statsd client call to be used directly in the form of telemetry.Gauge() instead of telemetry.statsd.Gauge() It does NOT implement all the function from the statsd.ClientInterface interface because some of these are never going to be used in this application
Index ¶
- func Close() error
- func Count(name string, value int64, tags []string, rate float64) error
- func Decr(name string, tags []string, rate float64) error
- func Distribution(name string, value float64, tags []string, rate float64) error
- func Event(event *statsd.Event) error
- func Flush() error
- func Gauge(name string, value float64, tags []string, rate float64) error
- func Histogram(name string, value float64, tags []string, rate float64) error
- func Incr(name string, tags []string, rate float64) error
- func IsClosed() bool
- func Set(name string, value string, tags []string, rate float64) error
- func Setup(cfg *config.KubehoundConfig) error
- func SimpleEvent(title string, text string) error
- func TimeInMilliseconds(name string, value float64, tags []string, rate float64) error
- func Timing(name string, value time.Duration, tags []string, rate float64) error
- func TimingDist(name string, dt time.Duration, tags []string, rate float64) error
- type NoopClient
- func (*NoopClient) Close() error
- func (*NoopClient) Count(name string, value int64, tags []string, rate float64) error
- func (*NoopClient) CountWithTimestamp(name string, value int64, tags []string, rate float64, timestamp time.Time) error
- func (*NoopClient) Decr(name string, tags []string, rate float64) error
- func (*NoopClient) Distribution(name string, value float64, tags []string, rate float64) error
- func (*NoopClient) Event(event *statsd.Event) error
- func (*NoopClient) Flush() error
- func (*NoopClient) Gauge(name string, value float64, tags []string, rate float64) error
- func (*NoopClient) GaugeWithTimestamp(name string, value float64, tags []string, rate float64, timestamp time.Time) error
- func (*NoopClient) GetTelemetry() statsd.Telemetry
- func (*NoopClient) Histogram(name string, value float64, tags []string, rate float64) error
- func (*NoopClient) Incr(name string, tags []string, rate float64) error
- func (*NoopClient) IsClosed() bool
- func (*NoopClient) ServiceCheck(sc *statsd.ServiceCheck) error
- func (*NoopClient) Set(name string, value string, tags []string, rate float64) error
- func (*NoopClient) SimpleEvent(title, text string) error
- func (*NoopClient) SimpleServiceCheck(name string, status statsd.ServiceCheckStatus) error
- func (*NoopClient) TimeInMilliseconds(name string, value float64, tags []string, rate float64) error
- func (*NoopClient) Timing(name string, value time.Duration, tags []string, rate float64) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Distribution ¶
Distribution tracks accurate global percentiles of a set of values.
func Setup ¶
func Setup(cfg *config.KubehoundConfig) error
func SimpleEvent ¶
SimpleEvent sends an event with the provided title and text.
func TimeInMilliseconds ¶
TimeInMilliseconds sends timing information in milliseconds.
Types ¶
type NoopClient ¶
type NoopClient struct{}
NoopClient may be used in place of any type of statsd client that speaks statsd.ClientInterface for testing, to remove side-effects of statsd calls
func NewNoopClient ¶
func NewNoopClient() *NoopClient
NewNoopClient returns a statsd client implementation that does nothing. It is used for tests.
func (*NoopClient) Close ¶
func (*NoopClient) Close() error
func (*NoopClient) CountWithTimestamp ¶
func (*NoopClient) Distribution ¶
func (*NoopClient) Flush ¶
func (*NoopClient) Flush() error
func (*NoopClient) GaugeWithTimestamp ¶
func (*NoopClient) GetTelemetry ¶
func (*NoopClient) GetTelemetry() statsd.Telemetry
func (*NoopClient) IsClosed ¶
func (*NoopClient) IsClosed() bool
func (*NoopClient) ServiceCheck ¶
func (*NoopClient) ServiceCheck(sc *statsd.ServiceCheck) error
func (*NoopClient) SimpleEvent ¶
func (*NoopClient) SimpleEvent(title, text string) error
func (*NoopClient) SimpleServiceCheck ¶
func (*NoopClient) SimpleServiceCheck(name string, status statsd.ServiceCheckStatus) error