You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
db.Use(prometheus.New(prometheus.Config{
DBName: "gorm_", // use `DBName` as metrics label
RefreshInterval: 5, // Refresh metrics interval (default 15 seconds)
StartServer: false, // start http server to expose metrics
HTTPServerPort: 8080, // configure http server port, default port 8080 (if you have configured multiple instances, only the first `HTTPServerPort` will be used to start server)
MetricsCollector: []prometheus.MetricsCollector{
&prometheus.MySQL{
VariableNames: []string{"Threads_running"},
},
}, // user defined metrics
}))
removing the MetricsCollector removes the error altogether
MetricsCollector: []prometheus.MetricsCollector{
&prometheus.MySQL{
VariableNames: []string{"Threads_running"},
},
}, // user defined metrics
GORM Playground Link
go-gorm/playground#1
Description
Getting this error in the console when trying the plugin with postgres
Continuoiusly
The text was updated successfully, but these errors were encountered: