Skip to content

Commit 1437234

Browse files
WARN duplicated database connections
Signed-off-by: Anders Swanson <anders.swanson@oracle.com>
1 parent 359a992 commit 1437234

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

collector/config.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -312,7 +312,7 @@ func (m *MetricsConfiguration) validate(logger *slog.Logger) error {
312312
func (m *MetricsConfiguration) checkDuplicatedDatabases(logger *slog.Logger) {
313313
dbs := map[string][]string{}
314314
for db, cfg := range m.Databases {
315-
key := cfg.URL + cfg.Username
315+
key := strings.ToLower(cfg.URL + cfg.Username)
316316
dbs[key] = append(dbs[key], db)
317317
}
318318

0 commit comments

Comments
 (0)