fix: actually report metrics to influxdb in scheduled tasks runner

This commit is contained in:
spiral 2022-03-16 14:28:43 -04:00
parent 26ef81e47a
commit 98026dfc7d
No known key found for this signature in database
GPG Key ID: 244A11E4B0BCF40E

View File

@ -96,6 +96,9 @@ public class TaskHandler
// Other shiz // Other shiz
_metrics.Measure.Gauge.SetValue(Metrics.WebhookCacheSize, stats.Sum(x => x.WebhookCacheSize)); _metrics.Measure.Gauge.SetValue(Metrics.WebhookCacheSize, stats.Sum(x => x.WebhookCacheSize));
await Task.WhenAll(((IMetricsRoot)_metrics).ReportRunner.RunAllAsync());
_logger.Debug("Submitted metrics to backend");
} }
private async Task CleanupOldMessages() private async Task CleanupOldMessages()