Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Register ¶
func Register(opsStatsGetter OperationsStatsGetter) error
Types ¶
type InProgressOperationsCollector ¶
type InProgressOperationsCollector struct {
// contains filtered or unexported fields
}
func NewInProgressOperationsCollector ¶
func NewInProgressOperationsCollector(statsGetter OperationsStatsGetter) *InProgressOperationsCollector
func (*InProgressOperationsCollector) Collect ¶
func (c *InProgressOperationsCollector) Collect(ch chan<- prometheus.Metric)
func (*InProgressOperationsCollector) Describe ¶
func (c *InProgressOperationsCollector) Describe(ch chan<- *prometheus.Desc)
type OperationsStatsGetter ¶
type OperationsStatsGetter interface {
InProgressOperationsCount() (model.OperationsCount, dberrors.Error)
}
Click to show internal directories.
Click to hide internal directories.