metrics

package
v0.35.0 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2025 License: Apache-2.0 Imports: 11 Imported by: 8

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeleteStoreStats added in v0.34.0

func DeleteStoreStats(groupResource schema.GroupResource)

DeleteStoreStats delete the stats metrics.

func RecordDecodeError added in v0.27.0

func RecordDecodeError(groupResource schema.GroupResource)

RecordDecodeError sets the storage_decode_errors metrics.

func RecordEtcdBookmark added in v0.20.0

func RecordEtcdBookmark(groupResource schema.GroupResource)

RecordEtcdBookmark updates the etcd_bookmark_counts metric.

func RecordEtcdEvent added in v0.27.0

func RecordEtcdEvent(groupResource schema.GroupResource)

RecordEtcdEvent updated the etcd_events_received_total metric.

func RecordEtcdRequest added in v0.28.0

func RecordEtcdRequest(verb string, groupResource schema.GroupResource, err error, startTime time.Time)

RecordEtcdRequest updates and sets the etcd_request_duration_seconds, etcd_request_total, etcd_request_errors_total metrics.

func RecordStorageListMetrics added in v0.23.0

func RecordStorageListMetrics(groupResource schema.GroupResource, numFetched, numEvald, numReturned int)

RecordListEtcd3Metrics notes various metrics of the cost to serve a LIST request

func Register

func Register()

Register all metrics.

func Reset

func Reset()

Reset resets the etcd_request_duration_seconds metric.

func SetStorageMonitorGetter added in v0.28.0

func SetStorageMonitorGetter(getter func() ([]Monitor, error))

SetStorageMonitorGetter sets monitor getter to allow monitoring etcd stats.

func UpdateEtcdDbSize added in v0.19.0

func UpdateEtcdDbSize(ep string, size int64)

UpdateEtcdDbSize sets the etcd_db_total_size_in_bytes metric. Deprecated: Metric etcd_db_total_size_in_bytes will be replaced with apiserver_storage_size_bytes

func UpdateLeaseObjectCount added in v0.18.18

func UpdateLeaseObjectCount(count int64)

UpdateLeaseObjectCount sets the etcd_lease_object_counts metric.

func UpdateStoreStats added in v0.34.0

func UpdateStoreStats(groupResource schema.GroupResource, stats storage.Stats, err error)

UpdateStoreStats sets the stats metrics.

Types

type Monitor added in v0.28.0

type Monitor interface {
	Monitor(ctx context.Context) (StorageMetrics, error)
	Close() error
}

type StorageMetrics added in v0.28.0

type StorageMetrics struct {
	Size int64
}

Jump to

Keyboard shortcuts

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