Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Elapsed ¶ added in v0.12.0
func Elapsed(h prometheus.Histogram) func()
Elapsed calculates and store method execution time for corresponding histogram.
Types ¶
type ApiMetrics ¶ added in v0.12.0
type ApiMetrics struct { GetBalanceDuration prometheus.Histogram AuthDuration prometheus.Histogram FormBinaryBearerDuration prometheus.Histogram ListContainersDuration prometheus.Histogram PutContainerDuration prometheus.Histogram PostContainerDuration prometheus.Histogram DeleteContainerDuration prometheus.Histogram GetContainerDuration prometheus.Histogram GetContainerEACLDuration prometheus.Histogram PutContainerEACLDuration prometheus.Histogram GetContainerObjectDuration prometheus.Histogram HeadContainerObjectDuration prometheus.Histogram GetByAttributeDuration prometheus.Histogram HeadByAttributeDuration prometheus.Histogram GetNetworkInfoDuration prometheus.Histogram PutObjectDuration prometheus.Histogram NewUploadContainerObjectDuration prometheus.Histogram NewGetByAttributeDuration prometheus.Histogram NewHeadByAttributeDuration prometheus.Histogram NewGetContainerObjectDuration prometheus.Histogram NewHeadContainerObjectDuration prometheus.Histogram SearchObjectsDuration prometheus.Histogram DeleteObjectDuration prometheus.Histogram GetObjectInfoDuration prometheus.Histogram UploadContainerObjectDuration prometheus.Histogram V2SearchObjectsDuration prometheus.Histogram }
ApiMetrics contains metric definitions for API.
func NewApiMetrics ¶ added in v0.12.0
func NewApiMetrics() *ApiMetrics
NewApiMetrics is a constructor ApiMetrics.
type GateMetrics ¶
type GateMetrics struct {
// contains filtered or unexported fields
}
func NewGateMetrics ¶
func NewGateMetrics() *GateMetrics
NewGateMetrics creates new metrics for rest gate.
func (*GateMetrics) Collect ¶
func (m *GateMetrics) Collect(ch chan<- prometheus.Metric)
func (GateMetrics) Describe ¶
func (m GateMetrics) Describe(descs chan<- *prometheus.Desc)
func (*GateMetrics) SetGWVersion ¶ added in v0.6.0
func (g *GateMetrics) SetGWVersion(ver string)
type PoolMetrics ¶ added in v0.12.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 ContainerAnnounceUsedSpace prometheus.Histogram AnnounceIntermediateTrust prometheus.Histogram AnnounceLocalTrust 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.12.0
func NewPoolMetrics() *PoolMetrics
NewPoolMetrics is a constructor for PoolMetrics.
func (*PoolMetrics) OperationCallback ¶ added in v0.12.0
type Service ¶
Service serves metrics.
func NewPprofService ¶
NewPprofService creates a new service for gathering pprof metrics.
func NewPrometheusService ¶
NewPrometheusService creates a new service for gathering prometheus metrics.
Click to show internal directories.
Click to hide internal directories.