kubernetes: k8s.io/kubernetes/staging/src/k8s.io/apiserver/pkg/storage/etcd3/metrics Index | Files

package metrics

import "k8s.io/kubernetes/staging/src/k8s.io/apiserver/pkg/storage/etcd3/metrics"


Package Files


func RecordEtcdRequestLatency Uses

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

RecordEtcdRequestLatency sets the etcd_request_duration_seconds metrics.

func Register Uses

func Register()

Register all metrics.

func Reset Uses

func Reset()

Reset resets the etcd_request_duration_seconds metric.

func UpdateEtcdDbSize Uses

func UpdateEtcdDbSize(ep string, size int64)

UpdateEtcdDbSize sets the etcd_db_total_size_in_bytes metric.

func UpdateObjectCount Uses

func UpdateObjectCount(resourcePrefix string, count int64)

UpdateObjectCount sets the etcd_object_counts metric.

Package metrics imports 4 packages (graph). Updated 2020-09-24. Refresh now. Tools for package owners.