metric

package
v0.0.0-...-3c85401 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2017 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Stats

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

func NewStats

func NewStats(container *types.Container, dockerized bool) *Stats

func (*Stats) GetCPUStats

func (s *Stats) GetCPUStats() (*types.CPUStats, error)

func (*Stats) GetMemoryStats

func (s *Stats) GetMemoryStats() (*types.MemoryStats, error)

func (*Stats) GetNetworkStats

func (s *Stats) GetNetworkStats() (map[string]uint64, error)

func (*Stats) GetTotalJiffies

func (s *Stats) GetTotalJiffies() (uint64, uint64, error)

type StatsDClient

type StatsDClient struct {
	Addr string
}

func NewStatsdClient

func NewStatsdClient(addr string) *StatsDClient

func (*StatsDClient) Close

func (self *StatsDClient) Close() error

func (*StatsDClient) Send

func (self *StatsDClient) Send(data map[string]float64, endpoint, tag string) error

Jump to

Keyboard shortcuts

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