metrics

package
v0.28.0-rc.0 Latest Latest
Warning

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

Go to latest
Published: Jul 27, 2023 License: Apache-2.0 Imports: 7 Imported by: 9

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RecordDecodeError added in v0.27.0

func RecordDecodeError(resource string)

RecordDecodeError sets the storage_decode_errors metrics.

func RecordEtcdBookmark added in v0.20.0

func RecordEtcdBookmark(resource string)

RecordEtcdBookmark updates the etcd_bookmark_counts metric.

func RecordEtcdEvent added in v0.27.0

func RecordEtcdEvent(resource string)

RecordEtcdEvent updated the etcd_events_received_total metric.

func RecordEtcdRequest added in v0.28.0

func RecordEtcdRequest(verb, resource string, 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(resource string, 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 UpdateObjectCount

func UpdateObjectCount(resourcePrefix string, count int64)

UpdateObjectCount sets the apiserver_storage_object_counts metric.

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