Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func StartCollector ¶
func StartCollectorWith ¶
Types ¶
type CollectorFunc ¶
type CollectorFunc func()
func (CollectorFunc) Collect ¶
func (f CollectorFunc) Collect()
type GoMetrics ¶
type GoMetrics struct {
// contains filtered or unexported fields
}
GoMetrics is a metric collector that reports metrics from the Go runtime.
func NewGoMetrics ¶
func NewGoMetrics() *GoMetrics
NewGoMetrics creates a new collector for the Go runtime that produces metrics on the default stats engine.
func NewGoMetricsWith ¶
NewGoMetricsWith creates a new collector for the Go unrtime that producers metrics on eng.
type ProcMetrics ¶
type ProcMetrics struct {
// contains filtered or unexported fields
}
ProcMetrics is a metric collector that reports metrics on processes.
func NewProcMetrics ¶
func NewProcMetrics() *ProcMetrics
NewProdMetrics collects metrics on the current process and reports them to the default stats engine.
func NewProcMetricsWith ¶
func NewProcMetricsWith(eng *stats.Engine, pid int) *ProcMetrics
NewProcMetricsWith collects metrics on the process identified by pid and reports them to eng.
func (*ProcMetrics) Collect ¶
func (p *ProcMetrics) Collect()
Collect satsifies the Collector interface.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.