Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Collector ¶
type Collector struct { // PauseDur represents the interval inbetween each set of stats output. // Defaults to 10 seconds. PauseDur time.Duration // EnableCPU determines whether CPU statisics will be output. Defaults to true. EnableCPU bool // EnableMem determines whether memory statistics will be output. Defaults to true. EnableMem bool // EnableGC determines whether garbage collection statistics will be output. EnableMem // must also be set to true for this to take affect. Defaults to true. EnableGC bool // Done, when closed, is used to signal Collector that is should stop collecting // statistics and the Run function should return. Done <-chan struct{} // contains filtered or unexported fields }
Collector implements the periodic grabbing of informational data from the runtime package and outputting the values to a GaugeFunc.
Click to show internal directories.
Click to hide internal directories.