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) MetricContainersOOMCountTotalInc(name string)
- func (m *Metrics) MetricContainersOOMTotalInc()
- func (m *Metrics) MetricImageLayerReuseInc(layer string)
- func (m *Metrics) MetricImagePullsByDigestAdd(add float64, values ...string)
- func (m *Metrics) MetricImagePullsByNameAdd(add float64, values ...string)
- func (m *Metrics) MetricImagePullsByNameSkippedAdd(add float64, name string)
- func (m *Metrics) MetricImagePullsBytesAdd(add float64, mediatype string, size int64)
- func (m *Metrics) MetricImagePullsFailuresInc(image, label string)
- func (m *Metrics) MetricImagePullsLayerSizeObserve(size int64)
- func (m *Metrics) MetricImagePullsSkippedBytesAdd(add float64)
- func (m *Metrics) MetricImagePullsSuccessesInc(name string)
- 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) Start(stop chan struct{}) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetSizeBucket ¶ added in v1.23.0
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 ¶ added in v1.23.0
SinceInSeconds gets the time since specified start in seconds.
func UnaryInterceptor ¶ added in v1.17.0
func UnaryInterceptor() grpc.UnaryServerInterceptor
UnaryInterceptor adds all necessary metrics to incoming gRPC requests
Types ¶
type Metrics ¶ added in v1.22.0
type Metrics struct {
// contains filtered or unexported fields
}
Metrics is the main structure for starting the metrics endpoints.
func Instance ¶ added in v1.22.0
func Instance() *Metrics
Instance returns the singleton instance of the Metrics.
func New ¶ added in v1.22.0
func New(config *libconfig.MetricsConfig) *Metrics
New creates a new metrics instance.
func (*Metrics) MetricContainersOOMCountTotalInc ¶ added in v1.23.0
func (*Metrics) MetricContainersOOMTotalInc ¶ added in v1.22.0
func (m *Metrics) MetricContainersOOMTotalInc()
func (*Metrics) MetricImageLayerReuseInc ¶ added in v1.22.0
func (*Metrics) MetricImagePullsByDigestAdd ¶ added in v1.22.0
func (*Metrics) MetricImagePullsByNameAdd ¶ added in v1.22.0
func (*Metrics) MetricImagePullsByNameSkippedAdd ¶ added in v1.22.0
func (*Metrics) MetricImagePullsBytesAdd ¶ added in v1.23.0
func (*Metrics) MetricImagePullsFailuresInc ¶ added in v1.22.0
func (*Metrics) MetricImagePullsLayerSizeObserve ¶ added in v1.22.0
func (*Metrics) MetricImagePullsSkippedBytesAdd ¶ added in v1.23.0
func (*Metrics) MetricImagePullsSuccessesInc ¶ added in v1.22.0
func (*Metrics) MetricOperationsErrorsInc ¶ added in v1.22.0
func (*Metrics) MetricOperationsInc ¶ added in v1.22.0
func (*Metrics) MetricOperationsLatencySet ¶ added in v1.22.0
func (*Metrics) MetricOperationsLatencyTotalObserve ¶ added in v1.22.0
Click to show internal directories.
Click to hide internal directories.