metrics

package
v0.0.0-...-cf22b21 Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2018 License: Apache-2.0 Imports: 15 Imported by: 0

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 Metrics

type Metrics map[string]func() int

type MetricsProvider

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

func NewMetricsProvider

func NewMetricsProvider(logger lager.Logger, backingStoresPath, depotPath string) *MetricsProvider

func (*MetricsProvider) BackingStores

func (m *MetricsProvider) BackingStores() int

func (*MetricsProvider) DepotDirs

func (m *MetricsProvider) DepotDirs() int

func (*MetricsProvider) LoopDevices

func (m *MetricsProvider) LoopDevices() int

func (*MetricsProvider) NumCPU

func (m *MetricsProvider) NumCPU() int

func (*MetricsProvider) NumGoroutine

func (m *MetricsProvider) NumGoroutine() int

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()

Jump to

Keyboard shortcuts

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