metrics

package
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2021 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

type Handler struct {
	sync.Mutex
	// contains filtered or unexported fields
}

func NewHandler

func NewHandler(mod *elf.Module) *Handler

func (*Handler) PruneNamespace added in v0.1.3

func (h *Handler) PruneNamespace(ns int) (int, error)

func (*Handler) QueryAll

func (h *Handler) QueryAll() Metrics

type Metric

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

Metric is just an aggregate of the kernel key and value

func (*Metric) Count

func (m *Metric) Count() uint64

func (*Metric) Errno

func (m *Metric) Errno() uint16

func (*Metric) First

func (m *Metric) First() uint64

func (*Metric) Last

func (m *Metric) Last() uint64

func (*Metric) PidNS

func (m *Metric) PidNS() uint32

func (Metric) PidNamespace

func (m Metric) PidNamespace() int

PidNamespace is for podmon.ResolverContext interface abstraction

func (Metric) String

func (m Metric) String() string

func (*Metric) Syscall

func (m *Metric) Syscall() uint32

func (*Metric) TimeSpent

func (m *Metric) TimeSpent() uint64

type Metrics

type Metrics []Metric

Metrics is an array of metric entries

Jump to

Keyboard shortcuts

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