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 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.