metrics

package
v1.1.1-0...-f7ff9f2 Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2016 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConsoleOutput

func ConsoleOutput()

func StartMetricsJobs

func StartMetricsJobs(config *conf.Configuration)

func StartRuntimeMetricsJob

func StartRuntimeMetricsJob(env string, region string)

func UploadToLibrato

func UploadToLibrato(config *conf.LibratoConfiguration)

Types

type GoInternalMetrics

type GoInternalMetrics struct {
	Alloc, TotalAlloc, NumGoroutine gmetrics.Gauge
}

golang internals

func NewGoInternalMetrics

func NewGoInternalMetrics(prefix string) *GoInternalMetrics

func (*GoInternalMetrics) Update

func (gim *GoInternalMetrics) Update()

type LoadMetrics

type LoadMetrics struct {
	One, Five, Fifteen gmetrics.GaugeFloat64
}

system load

func NewLoadMetrics

func NewLoadMetrics(prefix string) *LoadMetrics

func (*LoadMetrics) Update

func (lm *LoadMetrics) Update()

type MetricsGroup

type MetricsGroup interface {
	Update()
}

type ProcessCpuMetrics

type ProcessCpuMetrics struct {
	User, Sys, Total gmetrics.Meter
}

process cpu

func NewProcessCpuMetrics

func NewProcessCpuMetrics(prefix string) *ProcessCpuMetrics

func (*ProcessCpuMetrics) Update

func (pcm *ProcessCpuMetrics) Update()

type ProcessMemoryMetrics

type ProcessMemoryMetrics struct {
	Resident, Shared gmetrics.Gauge
	PageFaults       gmetrics.Meter
}

process memory

func NewProcessMemoryMetrics

func NewProcessMemoryMetrics(prefix string) *ProcessMemoryMetrics

func (*ProcessMemoryMetrics) Update

func (pmm *ProcessMemoryMetrics) Update()

type ProxyMetrics

type ProxyMetrics struct {
	Msgs        gmetrics.Meter
	MsgReply    gmetrics.Meter
	MsgForward  gmetrics.Meter
	MsgBodySize gmetrics.Histogram
	Connects    gmetrics.Meter
	Connections gmetrics.Gauge
}

Record proxy related meters to enable monitoring of throughput and volume.

func NewProxyMetrics

func NewProxyMetrics(env string, region string) ProxyMetrics

conf.Environment, conf.Region

type RuntimeMetrics

type RuntimeMetrics struct {
	Internals, Memory, Cpu, Load MetricsGroup
}

func NewRuntimeMetrics

func NewRuntimeMetrics(prefix string) *RuntimeMetrics

func (*RuntimeMetrics) Update

func (rm *RuntimeMetrics) Update()

Jump to

Keyboard shortcuts

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