manager

package
v0.0.0-...-4a3b6a8 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2020 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterDurationMetrics

func RegisterDurationMetrics(resolution time.Duration)

RegisterTickDuration creates and registers a histogram metric for scrape duration, suitable for use in the overall manager.

Types

type Manager

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

func NewManager

func NewManager(metricSrc sources.MetricSource, metricSink sink.MetricSink, resolution time.Duration) *Manager

func (*Manager) CheckHealth

func (rm *Manager) CheckHealth(_ *http.Request) error

CheckHealth checks the health of the manager by looking at tick times, and checking if we have at least one node in the collected data. It implements the health checker func part of the healthz checker.

func (*Manager) Collect

func (rm *Manager) Collect(startTime time.Time)

func (*Manager) RunUntil

func (rm *Manager) RunUntil(stopCh <-chan struct{})

type Runnable

type Runnable interface {
	// Run runs this runnable until the given channel is closed.
	// It should not block -- it will spawn its own goroutine.
	RunUntil(stopCh <-chan struct{})
}

Runnable represents something that can be run until a signal is given to stop.

Jump to

Keyboard shortcuts

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