Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Component ¶
Component implements the settings.Component interface for expvar metrics.
func NewComponent ¶
func NewComponent() *Component
NewComponent generates a blank component instance.
type Config ¶
type Config struct {
Alloc string `description:"Name of the metric tracking allocated bytes"`
Frees string `description:"Name of the metric tracking number of frees"`
HeapAlloc string `description:"Name of the metric tracking allocated bytes"`
HeapIdle string `description:"Name of the metric tracking bytes in unused spans"`
HeapInuse string `description:"Name of the metric tracking bytes in in-use spans"`
HeapObjects string `description:"Name of the metric tracking total number of object allocated"`
HeapReleased string `description:"Name of the metric tracking bytes realeased to the OS"`
HeapSys string `description:"Name of the metric tracking bytes obtained from the system"`
Lookups string `description:"Name of the metric tracking number of pointer lookups"`
Mallocs string `description:"Name of the metric tracking number of mallocs"`
NumGC string `description:"Name of the metric tracking number of garbage collections"`
PauseNS string `description:"Name of the metric tracking duration of GC pauses"`
PauseTotalNS string `description:"Name of the metric tracking total GC pause duration over lifetime process"`
TotalAlloc string `description:"Name of the metric tracking allocated bytes (even if freed)"`
GoroutinesExists string `description:"Name of the metric tracking number of active go routines"`
ReportInterval time.Duration `description:"Interval on which metrics are reported."`
}
Config is a container for internal expvar metrics settings.
func (*Config) Description ¶
Description returns the help information for the configuration root.
type Expvar ¶
type Expvar struct {
Stat stat.Stat
MemstatsAllocName string
MemstatsFreesName string
MemstatsHeapAllocName string
MemstatsHeapIdleName string
MemstatsHeapInuseName string
MemstatsHeapObjectsName string
MemstatsHeapReleasedName string
MemstatsHeapSysName string
MemstatsLookupsName string
MemstatsMallocsName string
MemstatsNumGCName string
MemstatsPauseNSName string
MemstatsPauseTotalNSName string
MemstatsTotalAllocName string
GoroutinesExistsName string
Interval time.Duration
// contains filtered or unexported fields
}
Expvar tracks the memory usage of the Go runtime and collects metrics instrumented from Go’s expvar package
Click to show internal directories.
Click to hide internal directories.