Documentation ¶
Index ¶
- func GetSizeBucket(size float64) string
- func SinceInMicroseconds(start time.Time) float64
- func SinceInSeconds(start time.Time) float64
- func UnaryInterceptor() grpc.UnaryServerInterceptor
- type Metrics
- func (m *Metrics) MetricContainersEventsDroppedInc()
- func (m *Metrics) MetricContainersOOMCountTotalDelete(name string)
- func (m *Metrics) MetricContainersOOMCountTotalInc(name string)
- func (m *Metrics) MetricContainersOOMTotalInc()
- func (m *Metrics) MetricContainersSeccompNotifierCountTotalInc(name, syscall string)
- func (m *Metrics) MetricImageLayerReuseInc(layer string)
- func (m *Metrics) MetricImagePullsBytesAdd(add float64, mediatype string, size int64)
- func (m *Metrics) MetricImagePullsFailuresInc(image references.RegistryImageReference, label string)
- func (m *Metrics) MetricImagePullsLayerSizeObserve(size int64)
- func (m *Metrics) MetricImagePullsSkippedBytesAdd(add float64)
- func (m *Metrics) MetricImagePullsSuccessesInc(name references.RegistryImageReference)
- func (m *Metrics) MetricOperationsErrorsInc(operation string)
- func (m *Metrics) MetricOperationsInc(operation string)
- func (m *Metrics) MetricOperationsLatencySet(operation string, start time.Time)
- func (m *Metrics) MetricOperationsLatencyTotalObserve(operation string, start time.Time)
- func (m *Metrics) MetricResourcesStalledAtStage(stage string)
- func (m *Metrics) Start(stop chan struct{}) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetSizeBucket ¶
GetSizeBucket gets a bucket name for given size sorted according to 1 KiB, 1 MiB, 10 MiB, ...
func SinceInMicroseconds ¶
SinceInMicroseconds gets the time since the specified start in microseconds.
func SinceInSeconds ¶
SinceInSeconds gets the time since specified start in seconds.
func UnaryInterceptor ¶
func UnaryInterceptor() grpc.UnaryServerInterceptor
UnaryInterceptor adds all necessary metrics to incoming gRPC requests
Types ¶
type Metrics ¶
type Metrics struct {
// contains filtered or unexported fields
}
Metrics is the main structure for starting the metrics endpoints.
func (*Metrics) MetricContainersEventsDroppedInc ¶
func (m *Metrics) MetricContainersEventsDroppedInc()
func (*Metrics) MetricContainersOOMCountTotalDelete ¶
func (*Metrics) MetricContainersOOMCountTotalInc ¶
func (*Metrics) MetricContainersOOMTotalInc ¶
func (m *Metrics) MetricContainersOOMTotalInc()
func (*Metrics) MetricContainersSeccompNotifierCountTotalInc ¶
func (*Metrics) MetricImageLayerReuseInc ¶
func (*Metrics) MetricImagePullsBytesAdd ¶
func (*Metrics) MetricImagePullsFailuresInc ¶
func (m *Metrics) MetricImagePullsFailuresInc(image references.RegistryImageReference, label string)
func (*Metrics) MetricImagePullsLayerSizeObserve ¶
func (*Metrics) MetricImagePullsSkippedBytesAdd ¶
func (*Metrics) MetricImagePullsSuccessesInc ¶
func (m *Metrics) MetricImagePullsSuccessesInc(name references.RegistryImageReference)
func (*Metrics) MetricOperationsErrorsInc ¶
func (*Metrics) MetricOperationsInc ¶
func (*Metrics) MetricOperationsLatencySet ¶
func (*Metrics) MetricOperationsLatencyTotalObserve ¶
func (*Metrics) MetricResourcesStalledAtStage ¶
Click to show internal directories.
Click to hide internal directories.