This commit is contained in:
@@ -64,7 +64,7 @@ namespace AyaNova.Biz
|
||||
|
||||
|
||||
//Get a count of important tables in db
|
||||
List<string> allTableNames = DbUtil.GetAllTablenames();
|
||||
List<string> allTableNames = DbUtil.GetAllTablenamesAsync();
|
||||
|
||||
//Skip some tables as they are internal and / or only ever have one record
|
||||
List<string> skipTableNames = new List<string>();
|
||||
@@ -76,7 +76,7 @@ namespace AyaNova.Biz
|
||||
if (!skipTableNames.Contains(table))
|
||||
{
|
||||
var tags = new MetricTags("TableTagKey", table);
|
||||
metrics.Measure.Gauge.SetValue(MetricsRegistry.DBRecordsGauge, tags, DbUtil.CountOfRecords(table));
|
||||
metrics.Measure.Gauge.SetValue(MetricsRegistry.DBRecordsGauge, tags, DbUtil.CountOfRecordsAsync(table));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user