Documentation ¶
Overview ¶
Package stats collects serviced metrics and posts them to the TSDB.
Package stats collects serviced metrics and posts them to the TSDB.
Package stats collects serviced metrics and posts them to the TSDB.
Package stats collects serviced metrics and posts them to the TSDB.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetOpenFileDescriptorCount ¶
GetOpenFileDescriptorCount returns the number of open file descriptors for the process id of the caller.
Types ¶
type Sample ¶
type Sample struct { Metric string `json:"metric"` Value string `json:"value"` Timestamp int64 `json:"timestamp"` Tags map[string]string `json:"tags"` }
Sample is a single metric measurement
type ServicedStatsReporter ¶
ServicedStatsReporter collects and posts serviced/docker stats to the TSDB.
func NewServicedStatsReporter ¶
func NewServicedStatsReporter(destination string, interval time.Duration, conn coordclient.Connection, dockerClient docker.Docker) (*ServicedStatsReporter, error)
NewServicedStatsReporter creates a new ServicedStatsReporter and kicks off the reporting goroutine.
type StatsReporterInterface ¶
type StatsReporterInterface interface { Close() // contains filtered or unexported methods }
StatsReporterInterface declares functions that may be useful for unit tests
type StorageStatsReporter ¶
type StorageStatsReporter struct {
// contains filtered or unexported fields
}
StorageStatsReporter collects and posts storage stats to the TSDB.
func NewStorageStatsReporter ¶
func NewStorageStatsReporter(destination string, interval time.Duration) (*StorageStatsReporter, error)
NewStorageStatsReporter creates a new NewStorageStatsReporter and kicks off the reporting goroutine.