Skip to content

Commit 38353f4

Browse files
committed
fix: handle invalid hydrate connection error
1 parent 4dcca46 commit 38353f4

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

scrapers/sql/sql.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ func (s SqlScraper) Scrape(ctx *v1.ScrapeContext, configs v1.ConfigScraper) v1.S
3131
connection, err := duty.HydrateConnection(ctx, ctx.Kubernetes, db.DefaultDB(), connection, ctx.Namespace)
3232
if err != nil {
3333
results.Errorf(err, "failed to hydrate connection for %s", config.Connection)
34+
continue
3435
}
3536
db, err := dburl.Open(connection.URL)
3637
if err != nil {

0 commit comments

Comments
 (0)