Documentation ¶
Index ¶
- type Metric
- type Metrics
- func (m *Metrics) Collect() error
- func (m *Metrics) Each(f func(metric Metric, value interface{}))
- func (m *Metrics) Format(key string) string
- func (m *Metrics) InitializeMetrics()
- func (m *Metrics) InitializeProcMetrics()
- func (m *Metrics) Raw() map[string]interface{}
- func (m *Metrics) SetProcPIDs(pids []int32) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Metric ¶ added in v0.1.0
type Metric struct { Name string Description string Format string Unit string InitialValue interface{} }
func AvailableMetrics ¶ added in v0.3.0
func AvailableMetrics() []Metric
func AvailableProcMetrics ¶ added in v0.5.0
func AvailableProcMetrics() []Metric
type Metrics ¶ added in v0.1.0
Metrics struct
func GetMetrics ¶ added in v0.4.0
GetMetrics returns metrics
func GetMetricsByName ¶ added in v0.7.0
GetMetricsByName returns metrics
func GetMetricsByPIDs ¶ added in v0.7.0
GetMetricsByPIDs returns metrics
func NewMetrics ¶ added in v0.1.0
NewMetrics returns *Metrics
func (*Metrics) InitializeMetrics ¶ added in v0.7.0
func (m *Metrics) InitializeMetrics()
func (*Metrics) InitializeProcMetrics ¶ added in v0.7.0
func (m *Metrics) InitializeProcMetrics()
func (*Metrics) SetProcPIDs ¶ added in v0.6.0
Click to show internal directories.
Click to hide internal directories.