metrics

package
v0.333.2-candidate Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2016 License: Apache-2.0 Imports: 15 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func StartDebugServer

func StartDebugServer(address string, sink *lager.ReconfigurableSink, metrics Metrics) (ifrit.Process, error)

Types

type Duration

type Duration string

func (Duration) Send

func (name Duration) Send(duration time.Duration)

type Metric

type Metric string

func (Metric) Send

func (name Metric) Send(value int)

type Metrics

type Metrics interface {
	NumCPU() int
	NumGoroutine() int
	LoopDevices() int
	BackingStores() int
	DepotDirs() int
}

func NewMetrics

func NewMetrics(logger lager.Logger, backingStoresPath, depotPath string) Metrics

type PeriodicMetronNotifier

type PeriodicMetronNotifier struct {
	Interval time.Duration
	Logger   lager.Logger
	Clock    clock.Clock
	// contains filtered or unexported fields
}

func NewPeriodicMetronNotifier

func NewPeriodicMetronNotifier(
	logger lager.Logger,
	metrics Metrics,
	interval time.Duration,
	clock clock.Clock,
) *PeriodicMetronNotifier

func (PeriodicMetronNotifier) Start

func (notifier PeriodicMetronNotifier) Start()

func (PeriodicMetronNotifier) Stop

func (notifier PeriodicMetronNotifier) Stop()

Directories

Path Synopsis
This file was generated by counterfeiter
This file was generated by counterfeiter

Jump to

Keyboard shortcuts

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