checks

package
v0.24.1 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2024 License: Apache-2.0 Imports: 28 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Backoffer added in v0.8.0

type Backoffer interface {
	// Reset causes the backoff provider to go back its initial
	// state, before any calls to Duration() were made.
	Reset()
	// Duration returns the duration to sleep.
	Duration() time.Duration
}

Backoffer defines an interface to provide backoff durations.

The implementation of this interface SHOULD NOT perform the actual sleep, but rather return the duration to sleep.

type Error added in v0.8.0

type Error string

func (Error) Error added in v0.8.0

func (e Error) Error() string

type FatalError added in v0.24.0

type FatalError Error

FatalError is an error that causes the program to terminate.

func (FatalError) Error added in v0.24.0

func (e FatalError) Error() string

type Streams

type Streams = []logproto.Stream

type TimeSeries

type TimeSeries = []prompb.TimeSeries

type TransientError added in v0.9.2

type TransientError Error

TransientError is an error that can be recovered.

func (TransientError) Error added in v0.9.2

func (e TransientError) Error() string

type Updater

type Updater struct {
	IsConnected func(bool)
	// contains filtered or unexported fields
}

Updater represents a probe along with the collection of scrapers running on that probe and it manages the configuration for blackbox-exporter that corresponds to the collection of scrapers.

func NewUpdater

func NewUpdater(opts UpdaterOptions) (*Updater, error)

func (*Updater) Run

func (c *Updater) Run(ctx context.Context) error

type UpdaterOptions added in v0.0.23

type UpdaterOptions struct {
	Conn           *grpc.ClientConn
	Logger         zerolog.Logger
	Backoff        Backoffer
	Publisher      pusher.Publisher
	TenantCh       chan<- sm.Tenant
	IsConnected    func(bool)
	PromRegisterer prometheus.Registerer
	Features       feature.Collection
	K6Runner       k6runner.Runner
	ScraperFactory scraper.Factory
	TenantLimits   *limits.TenantLimits
	Telemeter      *telemetry.Telemeter
}

Jump to

Keyboard shortcuts

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