Documentation
¶
Overview ¶
Package exporter implements datadog exporter for groupcache.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ClientInterface ¶ added in v0.0.2
type ClientInterface interface { // Gauge measures the value of a metric at a particular time. Gauge(name string, value float64, tags []string, rate float64) error // Count tracks how many times something happened per second. Count(name string, value int64, tags []string, rate float64) error // Close the client connection. Close() error }
ClientInterface is implemented by *statsd.Client. Simplified version of statsd.ClientInterface.
type Exporter ¶
type Exporter struct {
// contains filtered or unexported fields
}
Exporter exports stats.
type Options ¶
type Options struct { // ListGroups function must provide current list of groupcache groups. ListGroups func() []groupcache_exporter.GroupStatistics // Client interface is implemented by *statsd.Client. Client ClientInterface // SampleRate defaults to 1. SampleRate float64 // ExportInterval defaults to 1 minute. ExportInterval time.Duration // HostnameTagKey defaults to "pod_name". HostnameTagKey string // DisableHostnameTag prevents adding hostname tag $HostnameTagKey:$hostname. DisableHostnameTag bool // Debug enables debugging logs. Debug bool }
Options define exporter options.
Click to show internal directories.
Click to hide internal directories.