metrics

package
v0.41.1 Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2025 License: AGPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func APIStats

func APIStats(api string, f http.HandlerFunc) http.HandlerFunc

APIStats wraps http handler for api with basic statistics collection.

Types

type HTTPAPIStats

type HTTPAPIStats struct {
	sync.RWMutex
	// contains filtered or unexported fields
}

HTTPAPIStats holds statistics information about the API given in the requests.

func (*HTTPAPIStats) Dec

func (stats *HTTPAPIStats) Dec(api string)

Dec increments the api stats counter.

func (*HTTPAPIStats) Inc

func (stats *HTTPAPIStats) Inc(api string)

Inc increments the api stats counter.

func (*HTTPAPIStats) Load

func (stats *HTTPAPIStats) Load() map[string]int

Load returns the recorded stats.

type HTTPStats

type HTTPStats struct {
	// contains filtered or unexported fields
}

HTTPStats holds statistics information about HTTP requests made by all clients.

type PoolMetrics added in v0.37.0

type PoolMetrics struct {
	BalanceGet         prometheus.Histogram
	ContainerPut       prometheus.Histogram
	ContainerDelete    prometheus.Histogram
	ContainerGet       prometheus.Histogram
	ContainerSetEACL   prometheus.Histogram
	ContainerEACL      prometheus.Histogram
	ContainerList      prometheus.Histogram
	NetworkInfo        prometheus.Histogram
	ObjectHead         prometheus.Histogram
	ObjectRangeInit    prometheus.Histogram
	ObjectDelete       prometheus.Histogram
	ObjectGetInit      prometheus.Histogram
	SearchObjects      prometheus.Histogram
	ObjectPutInit      prometheus.Histogram
	EndpointInfo       prometheus.Histogram
	SessionCreate      prometheus.Histogram
	NetMapSnapshot     prometheus.Histogram
	ObjectHash         prometheus.Histogram
	ObjectGetStream    prometheus.Histogram
	ObjectRangeStream  prometheus.Histogram
	ObjectSearchStream prometheus.Histogram
	ObjectPutStream    prometheus.Histogram
	ObjectSearchV2     prometheus.Histogram
	OverallErrors      *prometheus.CounterVec
}

PoolMetrics provides metrics for SDK pool method calls.

func NewPoolMetrics added in v0.37.0

func NewPoolMetrics() *PoolMetrics

NewPoolMetrics is a constructor for PoolMetrics.

func (*PoolMetrics) OperationCallback added in v0.37.0

func (m *PoolMetrics) OperationCallback(nodeKey []byte, endpoint string, method stat.Method, duration time.Duration, err error)

Jump to

Keyboard shortcuts

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