Documentation ¶
Index ¶
- func RecordDecodeError(resource string)
- func RecordEtcdBookmark(resource string)
- func RecordEtcdEvent(resource string)
- func RecordEtcdRequest(verb, resource string, err error, startTime time.Time)
- func RecordStorageListMetrics(resource string, numFetched, numEvald, numReturned int)
- func Register()
- func Reset()
- func SetStorageMonitorGetter(getter func() ([]Monitor, error))
- func UpdateEtcdDbSize(ep string, size int64)
- func UpdateLeaseObjectCount(count int64)
- func UpdateObjectCount(resourcePrefix string, count int64)
- type Monitor
- type StorageMetrics
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
RecordEtcdRequest updates and sets the etcd_request_duration_seconds, etcd_request_total, etcd_request_errors_total metrics.
func RecordStorageListMetrics ¶ added in v0.23.0
RecordListEtcd3Metrics notes various metrics of the cost to serve a LIST request
func SetStorageMonitorGetter ¶ added in v0.28.0
SetStorageMonitorGetter sets monitor getter to allow monitoring etcd stats.
func UpdateEtcdDbSize ¶ added in v0.19.0
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 ¶
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
}