monitoring

package
v1.0.0-preupgrade Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MetricViews

func MetricViews() []sdkmetric.View

Types

type EDSMetricLabeler

type EDSMetricLabeler struct {
	metrics.Labeler
	// contains filtered or unexported fields
}

func InitBeholderMonitoring

func InitBeholderMonitoring(config beholder.Config) (*EDSMetricLabeler, error)

InitBeholderMonitoring initialized a labeler using the given Beholder config.

func NewEDSMetricLabeler

func NewEDSMetricLabeler(labeler metrics.Labeler, m *EDSMetrics) *EDSMetricLabeler

func (*EDSMetricLabeler) DecrementActiveRequestsCounter

func (l *EDSMetricLabeler) DecrementActiveRequestsCounter(ctx context.Context)

func (*EDSMetricLabeler) IncrementActiveRequestsCounter

func (l *EDSMetricLabeler) IncrementActiveRequestsCounter(ctx context.Context)

func (*EDSMetricLabeler) IncrementStoreSubscriptionUptime

func (l *EDSMetricLabeler) IncrementStoreSubscriptionUptime(ctx context.Context)

func (*EDSMetricLabeler) IncrementStoreUpdatesCounter

func (l *EDSMetricLabeler) IncrementStoreUpdatesCounter(ctx context.Context)

func (*EDSMetricLabeler) RecordHTTPRequestDuration

func (l *EDSMetricLabeler) RecordHTTPRequestDuration(ctx context.Context, duration time.Duration, path, method string, status int)

func (*EDSMetricLabeler) RecordStoreLedgerEndGauge

func (l *EDSMetricLabeler) RecordStoreLedgerEndGauge(ctx context.Context, ledgerEnd int64)

func (*EDSMetricLabeler) With

func (l *EDSMetricLabeler) With(keyValues ...string) common.EDSMetricLabeler

type EDSMetrics

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

func InitMetrics

func InitMetrics() (*EDSMetrics, error)

type NoopEDSMetricLabeler

type NoopEDSMetricLabeler struct{}

NoopEDSMetricLabeler is a no-op implementation of common.EDSMetricLabeler that can be used when monitoring is disabled or otherwise unavailable.

func (NoopEDSMetricLabeler) DecrementActiveRequestsCounter

func (n NoopEDSMetricLabeler) DecrementActiveRequestsCounter(ctx context.Context)

func (NoopEDSMetricLabeler) IncrementActiveRequestsCounter

func (n NoopEDSMetricLabeler) IncrementActiveRequestsCounter(ctx context.Context)

func (NoopEDSMetricLabeler) IncrementStoreSubscriptionUptime

func (n NoopEDSMetricLabeler) IncrementStoreSubscriptionUptime(ctx context.Context)

func (NoopEDSMetricLabeler) IncrementStoreUpdatesCounter

func (n NoopEDSMetricLabeler) IncrementStoreUpdatesCounter(ctx context.Context)

func (NoopEDSMetricLabeler) RecordHTTPRequestDuration

func (n NoopEDSMetricLabeler) RecordHTTPRequestDuration(ctx context.Context, duration time.Duration, path, method string, status int)

func (NoopEDSMetricLabeler) RecordStoreLedgerEndGauge

func (n NoopEDSMetricLabeler) RecordStoreLedgerEndGauge(ctx context.Context, ledgerEnd int64)

func (NoopEDSMetricLabeler) With

func (n NoopEDSMetricLabeler) With(keyValues ...string) common.EDSMetricLabeler

Jump to

Keyboard shortcuts

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