Currently I have checked for one database using these code:
services.AddHealthChecks()
.AddSqlServer(
connectionString: Configuration.GetConnectionString("DefaultConnection"),
healthQuery: "SELECT 1;",
name: "sql",
failureStatus: HealthStatus.Degraded,
tags: new string[] { "db", "sql", "sqlserver" }
);
But how do I check multiple database? I am using .NET Core 3.1 and AspNetCore.HealthChecks.SqlServer Version=3.1.1.
Duplicate health checks were registered with the name(s): sql (Parameter 'registrations')
– Cacodemon