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
}
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
Click to show internal directories.
Click to hide internal directories.