Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrMetricTooLong is returned when trying to write a metric that exceeds the length limit // defined by client.MaxMetricLength ErrMetricTooLong = fmt.Errorf("metric length is too long to write") // ErrTooManyMetrics is returned when calling Write with too many metrics // defined by client.MaxBatchSize ErrTooManyMetrics = fmt.Errorf("too many metrics to send") // ErrFlushFailure is returned when Flush fails for any reason ErrFlushFailure = fmt.Errorf("flush failure") )
Functions ¶
This section is empty.
Types ¶
type File ¶
type File struct {
// contains filtered or unexported fields
}
File writes metrics to an io.Writer
func NewFile ¶
func NewFile(w io.Writer, c *prometheus.CounterVec) *File
NewFile creates a new File writer with the provided writer
type Sonar ¶
type Sonar struct {
// contains filtered or unexported fields
}
Sonar writes metrics to DigitalOcean sonar
func NewSonar ¶
func NewSonar(client tsclient.Client, c *prometheus.CounterVec) *Sonar
NewSonar creates a new Sonar writer
Click to show internal directories.
Click to hide internal directories.