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 ¶
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
Click to show internal directories.
Click to hide internal directories.