From d83b088c3763c09e49a2fb9a553ec1c0048b16d3 Mon Sep 17 00:00:00 2001 From: Michael Shaw Date: Wed, 15 Mar 2023 01:38:22 -0400 Subject: [PATCH] update interface for failing docker build step --- pkg/prom/db_stats_collector.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/prom/db_stats_collector.go b/pkg/prom/db_stats_collector.go index 6a369a4..df98e8a 100644 --- a/pkg/prom/db_stats_collector.go +++ b/pkg/prom/db_stats_collector.go @@ -29,7 +29,7 @@ const ( // DBStatsGetter is an interface that gets sql.DBStats. type DBStatsGetter interface { - DbStats() dbmetrics.DbStats + Stats() dbmetrics.DbStats } // DBStatsCollector implements the prometheus.Collector interface. @@ -117,7 +117,7 @@ func (c DBStatsCollector) Describe(ch chan<- *prometheus.Desc) { // Collect implements the prometheus.Collector interface. func (c DBStatsCollector) Collect(ch chan<- prometheus.Metric) { - stats := c.sg.DbStats() + stats := c.sg.Stats() ch <- prometheus.MustNewConstMetric( c.maxOpenDesc,