metrics

package
v0.0.0-...-d902cc3 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

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)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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