metrics

package
v1.4.0-alpha.7 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DBMetricsCollector

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

DBMetricsCollector collects metrics from db.

func NewDBMetricsCollector

func NewDBMetricsCollector(
	ctx context.Context,
	db *sql.Database,
	logger log.Logger,
	checkInterval time.Duration,
) *DBMetricsCollector

NewDBMetricsCollector creates new DBMetricsCollector.

func (*DBMetricsCollector) Close

func (d *DBMetricsCollector) Close()

Close closes DBMetricsCollector.

func (*DBMetricsCollector) CollectMetrics

func (d *DBMetricsCollector) CollectMetrics(ctx context.Context)

CollectMetrics collects metrics from db.

Jump to

Keyboard shortcuts

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