Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion internal/mysqlmetrics/mysqlmetrics.go
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ func (m *MySQLMetrics) dbDSN(ctx context.Context, gceService GceInterface) (stri
cfg := mysql.Config{
User: m.Config.GetMysqlConfiguration().GetConnectionParameters().GetUsername(),
Passwd: pw.SecretValue(),
Addr: "localhost:3306", // using localhost because the agent is running on the same machine as the MySQL server
// Omit Addr to use default 127.0.0.1:3306 because the agent is running on the same machine as the MySQL server
DBName: "mysql",
}
return cfg.FormatDSN(), nil
Expand Down
Loading