metrics

package
v0.0.0-...-42bfd3d Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2024 License: Apache-2.0 Imports: 13 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 Metrics

type Metrics map[string]func() int

type MetricsProvider

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

func NewMetricsProvider

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

func (*MetricsProvider) BackingStores

func (m *MetricsProvider) BackingStores() int

TODO: remove this eventually

func (*MetricsProvider) DepotDirs

func (m *MetricsProvider) DepotDirs() int

func (*MetricsProvider) LoopDevices

func (m *MetricsProvider) LoopDevices() int

TODO: remove this eventually

func (*MetricsProvider) NumCPU

func (m *MetricsProvider) NumCPU() int

func (*MetricsProvider) NumGoroutine

func (m *MetricsProvider) NumGoroutine() int

func (*MetricsProvider) RegisterKillableContainer

func (m *MetricsProvider) RegisterKillableContainer(containerId string)

func (*MetricsProvider) RegisterUnkillableContainer

func (m *MetricsProvider) RegisterUnkillableContainer(containerId string)

func (*MetricsProvider) UnkillableContainers

func (m *MetricsProvider) UnkillableContainers() 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