metrics

package
v0.3.52 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const MetricPrefix = "lookout_"

Variables

This section is empty.

Functions

This section is empty.

Types

type LookoutApiCollector

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

func (*LookoutApiCollector) Collect

func (c *LookoutApiCollector) Collect(metrics chan<- prometheus.Metric)

func (*LookoutApiCollector) Describe

func (c *LookoutApiCollector) Describe(desc chan<- *prometheus.Desc)

type LookoutCollector

type LookoutCollector interface {
	Describe(desc chan<- *prometheus.Desc)
	Collect(metrics chan<- prometheus.Metric)
}

func ExposeLookoutMetrics

func ExposeLookoutMetrics(lookoutDbMetricsProvider LookoutDbMetricsProvider) LookoutCollector

type LookoutDbMetricsProvider

type LookoutDbMetricsProvider interface {
	GetOpenConnections() int
	GetOpenConnectionsUtilization() float64
}

type LookoutSqlDbMetricsProvider

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

func NewLookoutSqlDbMetricsProvider

func NewLookoutSqlDbMetricsProvider(db *sql.DB, postgresConfig configuration.PostgresConfig) *LookoutSqlDbMetricsProvider

func (*LookoutSqlDbMetricsProvider) GetOpenConnections

func (provider *LookoutSqlDbMetricsProvider) GetOpenConnections() int

func (*LookoutSqlDbMetricsProvider) GetOpenConnectionsUtilization

func (provider *LookoutSqlDbMetricsProvider) GetOpenConnectionsUtilization() float64

Jump to

Keyboard shortcuts

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