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 { // Groups is list of groupcache groups to export metrics. // // This is one example about how to create a group suitable to Groups: // import "github.com/udhos/groupcache_exporter/groupcache/modernprogram" // cache := ... // create groupcache group // groupStat := modernprogram.New(cache) // Groups []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 }
Options define exporter options.
Click to show internal directories.
Click to hide internal directories.