Documentation
¶
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 StatsReporter ¶
StatsReporter collects and posts serviced stats to the TSDB.
func NewStatsReporter ¶
func NewStatsReporter(destination string, interval time.Duration, conn coordclient.Connection) (*StatsReporter, error)
NewStatsReporter creates a new StatsReporter and kicks off the reporting goroutine.
func (*StatsReporter) Close ¶
func (sr *StatsReporter) Close()
Close shuts down the reporting goroutine. Blocks waiting for the goroutine to signal that it is indeed shutting down.
Click to show internal directories.
Click to hide internal directories.