Merge pull request #120 from cerc-io/rebase-v1.11.2-wip
update interface for failing docker build step
This commit is contained in:
commit
2c41537636
@ -29,7 +29,7 @@ const (
|
|||||||
|
|
||||||
// DBStatsGetter is an interface that gets sql.DBStats.
|
// DBStatsGetter is an interface that gets sql.DBStats.
|
||||||
type DBStatsGetter interface {
|
type DBStatsGetter interface {
|
||||||
DbStats() dbmetrics.DbStats
|
Stats() dbmetrics.DbStats
|
||||||
}
|
}
|
||||||
|
|
||||||
// DBStatsCollector implements the prometheus.Collector interface.
|
// DBStatsCollector implements the prometheus.Collector interface.
|
||||||
@ -117,7 +117,7 @@ func (c DBStatsCollector) Describe(ch chan<- *prometheus.Desc) {
|
|||||||
|
|
||||||
// Collect implements the prometheus.Collector interface.
|
// Collect implements the prometheus.Collector interface.
|
||||||
func (c DBStatsCollector) Collect(ch chan<- prometheus.Metric) {
|
func (c DBStatsCollector) Collect(ch chan<- prometheus.Metric) {
|
||||||
stats := c.sg.DbStats()
|
stats := c.sg.Stats()
|
||||||
|
|
||||||
ch <- prometheus.MustNewConstMetric(
|
ch <- prometheus.MustNewConstMetric(
|
||||||
c.maxOpenDesc,
|
c.maxOpenDesc,
|
||||||
|
Loading…
Reference in New Issue
Block a user