This commit is contained in:
Anthony Stirling
2024-11-25 14:02:17 +00:00
parent fd906d36dd
commit 5936e856f0
2 changed files with 20 additions and 4 deletions

View File

@@ -24,7 +24,7 @@ public class MetricsAggregatorService {
this.postHogService = postHogService;
}
@Scheduled(fixedRate = 900000) // Run every 15 minutes
@Scheduled(fixedRate = 1800000) // Run every 30 minutes
public void aggregateAndSendMetrics() {
Map<String, Object> metrics = new HashMap<>();
Search.in(meterRegistry)