telemetry

package
v1.19.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 27, 2021 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ProcessMetricsViews

type ProcessMetricsViews struct {
	// contains filtered or unexported fields
}

ProcessMetricsViews is a struct that contains views related to process metrics (cpu, mem, etc)

func NewProcessMetricsViews

func NewProcessMetricsViews(ballastSizeBytes uint64) (*ProcessMetricsViews, error)

NewProcessMetricsViews creates a new set of ProcessMetrics (mem, cpu) that can be used to measure basic information about this process.

func (*ProcessMetricsViews) StartCollection

func (pmv *ProcessMetricsViews) StartCollection()

StartCollection starts a ticker'd goroutine that will update the PMV measurements every 5 seconds

func (*ProcessMetricsViews) StopCollection

func (pmv *ProcessMetricsViews) StopCollection()

StopCollection stops the collection of the process metric information.

func (*ProcessMetricsViews) Views

func (pmv *ProcessMetricsViews) Views() []*view.View

Views returns the views internal to the PMV.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL