func (c *dbStatsCollector) Collect(ch chan<- prometheus.Metric) {
	stats := c.db.Stats()
	ch <- prometheus.MustNewConstMetric(c.maxOpenConnsDesc, prometheus.GaugeValue, float64(stats.MaxOpenConnections))
	ch <- prometheus.MustNewConstMetric(c.openConnsDesc, prometheus.GaugeValue, float64(stats.OpenConnections))
	ch <- prometheus.MustNewConstMetric(c.inUseDesc, prometheus.GaugeValue, float64(stats.InUse))
	ch <- prometheus.MustNewConstMetric(c.idleDesc, prometheus.GaugeValue, float64(stats.Idle))
	ch <- prometheus.MustNewConstMetric(c.waitCountDesc, prometheus.CounterValue, float64(stats.WaitCount))
	ch <- prometheus.MustNewConstMetric(c.waitDurationDesc, prometheus.CounterValue, float64(stats.WaitDuration))
	ch <- prometheus.MustNewConstMetric(c.maxIdleClosedDesc, prometheus.CounterValue, float64(stats.MaxIdleClosed))
	ch <- prometheus.MustNewConstMetric(c.maxIdleTimeClosedDesc, prometheus.CounterValue, float64(stats.MaxIdleTimeClosed))
	ch <- prometheus.MustNewConstMetric(c.maxLifetimeClosedDesc, prometheus.CounterValue, float64(stats.MaxLifetimeClosed))
}
// Collect returns the current state of all metrics of the collector.
Collect returns the current state of all metrics of the collector.
// Collect returns the current state of all metrics of the collector .
func (c *dbStatsCollector) Collect(ch chan<- prometheus.Metric) {
	stats := c.db.Stats()
	ch <- prometheus.MustNewConstMetric(c.maxOpenConnsDesc, prometheus.GaugeValue, float64(stats.MaxOpenConnections))
	ch <- prometheus.MustNewConstMetric(c.openConnsDesc, prometheus.GaugeValue, float64(stats.OpenConnections))
	ch <- prometheus.MustNewConstMetric(c.inUseDesc, prometheus.GaugeValue, float64(stats.InUse))
	ch <- prometheus.MustNewConstMetric(c.idleDesc, prometheus.GaugeValue, float64(stats.Idle))
	ch <- prometheus.MustNewConstMetric(c.waitCountDesc, prometheus.CounterValue, float64(stats.WaitCount))
	ch <- prometheus.MustNewConstMetric(c.waitDurationDesc, prometheus.CounterValue, float64(stats.WaitDuration))
	ch <- prometheus.MustNewConstMetric(c.maxIdleClosedDesc, prometheus.CounterValue, float64(stats.MaxIdleClosed))
	ch <- prometheus.MustNewConstMetric(c.maxIdleTimeClosedDesc, prometheus.CounterValue, float64(stats.MaxIdleTimeClosed))
	ch <- prometheus.MustNewConstMetric(c.maxLifetimeClosedDesc, prometheus.CounterValue, float64(stats.MaxLifetimeClosed))
}
func ( c * dbStatsCollector ) Collect ( ch chan <- prometheus . Metric ) { stats := c . db . Stats ( ) ch <- prometheus . MustNewConstMetric ( c . maxOpenConnsDesc , prometheus . GaugeValue , float64 ( stats . MaxOpenConnections ) ) ch <- prometheus . MustNewConstMetric ( c . openConnsDesc , prometheus . GaugeValue , float64 ( stats . OpenConnections ) ) ch <- prometheus . MustNewConstMetric ( c . inUseDesc , prometheus . GaugeValue , float64 ( stats . InUse ) ) ch <- prometheus . MustNewConstMetric ( c . idleDesc , prometheus . GaugeValue , float64 ( stats . Idle ) ) ch <- prometheus . MustNewConstMetric ( c . waitCountDesc , prometheus . CounterValue , float64 ( stats . WaitCount ) ) ch <- prometheus . MustNewConstMetric ( c . waitDurationDesc , prometheus . CounterValue , float64 ( stats . WaitDuration ) ) ch <- prometheus . MustNewConstMetric ( c . maxIdleClosedDesc , prometheus . CounterValue , float64 ( stats . MaxIdleClosed ) ) ch <- prometheus . MustNewConstMetric ( c . maxIdleTimeClosedDesc , prometheus . CounterValue , float64 ( stats . MaxIdleTimeClosed ) ) ch <- prometheus . MustNewConstMetric ( c . maxLifetimeClosedDesc , prometheus . CounterValue , float64 ( stats . MaxLifetimeClosed ) ) }
Collect returns the current state of all metrics of the collector.
Collect returns the current state of all metrics of the collector .