something something metrics
This commit is contained in:
		| @@ -67,6 +67,7 @@ public class SystemInfoService : IHostedService, IDisposable | ||||
|             _mareMetrics.SetGaugeTo(MetricsAPI.GaugeGroups, db.Groups.AsNoTracking().Count()); | ||||
|             _mareMetrics.SetGaugeTo(MetricsAPI.GaugeGroupPairs, db.GroupPairs.AsNoTracking().Count()); | ||||
|             _mareMetrics.SetGaugeTo(MetricsAPI.GaugeGroupPairsPaused, db.GroupPairs.AsNoTracking().Count(p => p.IsPaused)); | ||||
|             _mareMetrics.SetGaugeTo(MetricsAPI.GaugeUsersRegistered, db.Users.AsNoTracking().Count()); | ||||
|         } | ||||
|     } | ||||
|  | ||||
|   | ||||
| @@ -185,8 +185,6 @@ public class UserCleanupService : IHostedService | ||||
|         dbContext.Users.Remove(user); | ||||
|  | ||||
|         await dbContext.SaveChangesAsync().ConfigureAwait(false); | ||||
|  | ||||
|         metrics.DecGauge(MetricsAPI.GaugeUsersRegistered, 1); | ||||
|     } | ||||
|  | ||||
|     public Task StopAsync(CancellationToken cancellationToken) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 rootdarkarchon
					rootdarkarchon