Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Reporter ¶
type Reporter struct {
// Registry matrices that need to be reported to the Client
Registry metrics.Registry
// Client is the configured statsd instance
Client *statsd.Client
// contains filtered or unexported fields
}
Reporter wraps a metrics registry with a given statsd client.
func NewReporter ¶
NewReporter creates a new Reporter with a pre-configured statsd client.
type ReporterOption ¶
ReporterOption is function-option used during the construction of a *Reporter
func UseFlushInterval ¶
func UseFlushInterval(d time.Duration) ReporterOption
UseFlushInterval configures the flush tick interval to use with `Flush`
func UsePercentiles ¶
func UsePercentiles(percentiles []float64) ReporterOption
UsePercentiles builds a *Reporter that reports the specified percentiles for Histograms and TimedMetrics
Click to show internal directories.
Click to hide internal directories.