Update MetricsAggregatorService.java

This commit is contained in:
Anthony Stirling 2024-12-03 15:26:40 +00:00 committed by GitHub
parent 32e46eeb73
commit 99d1b46d97
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

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