etcdhealth

package
v0.9.9 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	EtcdReplicaSizeInUseExceededReason string = "etcdReplicaSizeInUseExceeded"
	EtcdReplicaSizeExceededReason      string = "etcdReplicaSizeExceeded"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type EtcdReplicaHealthMonitor

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

EtcdReplicaHealthMonitor is a health monitor for monitoring the health of an individual etcd replica.

func NewEtcdReplicaHealthMonitor

func NewEtcdReplicaHealthMonitor(
	name string,
	fractionOfStorageInUseLimit float64,
	fractionOfStorageLimit float64,
	replicaTimeout time.Duration,
	scrapeInterval time.Duration,
	metricsCollectionDelayBucketsStart float64,
	metricsCollectionDelayBucketsFactor float64,
	metricsCollectionDelayBucketsCount int,
	metricsProvider metrics.MetricsProvider,
) *EtcdReplicaHealthMonitor

func (*EtcdReplicaHealthMonitor) BlockUntilNextMetricsCollection

func (srv *EtcdReplicaHealthMonitor) BlockUntilNextMetricsCollection(ctx *armadacontext.Context)

BlockUntilNextMetricsCollection blocks until the next metrics collection has completed, or until ctx is cancelled, whichever occurs first.

func (*EtcdReplicaHealthMonitor) Collect

func (srv *EtcdReplicaHealthMonitor) Collect(c chan<- prometheus.Metric)

func (*EtcdReplicaHealthMonitor) Describe

func (srv *EtcdReplicaHealthMonitor) Describe(c chan<- *prometheus.Desc)

func (*EtcdReplicaHealthMonitor) IsHealthy

func (srv *EtcdReplicaHealthMonitor) IsHealthy() (bool, string, error)

func (*EtcdReplicaHealthMonitor) Run

func (*EtcdReplicaHealthMonitor) WithMetricsPrefix

func (srv *EtcdReplicaHealthMonitor) WithMetricsPrefix(v string) *EtcdReplicaHealthMonitor

WithMetricsPrefix adds a prefix to exported Prometheus metrics. Must be called before Describe or Collect.

Jump to

Keyboard shortcuts

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