don't log so much when saving and writing metrics

This commit is contained in:
Lee 2024-04-14 16:57:07 +01:00
parent cf618b3123
commit fa0189c421

View File

@ -91,11 +91,10 @@ public class MetricService {
* Save all metrics to Redis.
*/
private void saveMetrics() {
log.info("Saving metrics to Redis");
for (Metric<?> metric : metrics.values()) {
saveMetric(metric);
}
log.info("Saved {} metrics", metrics.size());
log.info("Saved {} metrics to Redis", metrics.size());
}
/**
@ -111,10 +110,9 @@ public class MetricService {
* Push all metrics to InfluxDB.
*/
private void writeToInflux() {
log.info("Writing metrics to InfluxDB");
for (Metric<?> metric : metrics.values()) {
influxWriteApi.writePoint(metric.toPoint());
}
log.info("Wrote {} metrics", metrics.size());
log.info("Wrote {} metrics to Influx", metrics.size());
}
}