1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
|
--- a/main.go
+++ b/main.go
@@ -10,12 +10,13 @@
"github.com/go-kit/log"
"github.com/go-kit/log/level"
"github.com/prometheus/client_golang/prometheus"
+ collectors_version "github.com/prometheus/client_golang/prometheus/collectors/version"
"github.com/prometheus/client_golang/prometheus/promhttp"
"github.com/prometheus/common/version"
)
func init() {
- prometheus.MustRegister(version.NewCollector("sql_exporter"))
+ prometheus.MustRegister(collectors_version.NewCollector("sql_exporter"))
}
func main() {
|