Documentation
¶
Index ¶
- func MetricViews() []sdkmetric.View
- type EDSMetricLabeler
- func (l *EDSMetricLabeler) DecrementActiveRequestsCounter(ctx context.Context)
- func (l *EDSMetricLabeler) IncrementActiveRequestsCounter(ctx context.Context)
- func (l *EDSMetricLabeler) IncrementStoreSubscriptionUptime(ctx context.Context)
- func (l *EDSMetricLabeler) IncrementStoreUpdatesCounter(ctx context.Context)
- func (l *EDSMetricLabeler) RecordHTTPRequestDuration(ctx context.Context, duration time.Duration, path, method string, status int)
- func (l *EDSMetricLabeler) RecordStoreLedgerEndGauge(ctx context.Context, ledgerEnd int64)
- func (l *EDSMetricLabeler) With(keyValues ...string) common.EDSMetricLabeler
- type EDSMetrics
- type NoopEDSMetricLabeler
- func (n NoopEDSMetricLabeler) DecrementActiveRequestsCounter(ctx context.Context)
- func (n NoopEDSMetricLabeler) IncrementActiveRequestsCounter(ctx context.Context)
- func (n NoopEDSMetricLabeler) IncrementStoreSubscriptionUptime(ctx context.Context)
- func (n NoopEDSMetricLabeler) IncrementStoreUpdatesCounter(ctx context.Context)
- func (n NoopEDSMetricLabeler) RecordHTTPRequestDuration(ctx context.Context, duration time.Duration, path, method string, status int)
- func (n NoopEDSMetricLabeler) RecordStoreLedgerEndGauge(ctx context.Context, ledgerEnd int64)
- func (n NoopEDSMetricLabeler) With(keyValues ...string) common.EDSMetricLabeler
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MetricViews ¶
Types ¶
type EDSMetricLabeler ¶
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 (*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 (NoopEDSMetricLabeler) RecordStoreLedgerEndGauge ¶
func (n NoopEDSMetricLabeler) RecordStoreLedgerEndGauge(ctx context.Context, ledgerEnd int64)
func (NoopEDSMetricLabeler) With ¶
func (n NoopEDSMetricLabeler) With(keyValues ...string) common.EDSMetricLabeler
Click to show internal directories.
Click to hide internal directories.