metrics

package
v0.0.0-...-fb1d941 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RecordEtcdBookmark

func RecordEtcdBookmark(resource string)

RecordEtcdBookmark updates the etcd_bookmark_counts metric.

func RecordEtcdRequestLatency

func RecordEtcdRequestLatency(verb, resource string, startTime time.Time)

RecordEtcdRequestLatency sets the etcd_request_duration_seconds metrics.

func RecordStorageListMetrics

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 UpdateEtcdDbSize

func UpdateEtcdDbSize(ep string, size int64)

UpdateEtcdDbSize sets the etcd_db_total_size_in_bytes metric.

func UpdateLeaseObjectCount

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 and etcd_object_counts (deprecated) metric.

Types

This section is empty.

Jump to

Keyboard shortcuts

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