don't log so much when saving and writing metrics
All checks were successful
Deploy App / docker (ubuntu-latest, 2.44.0, 17, 3.8.5) (push) Successful in 1m47s
All checks were successful
Deploy App / docker (ubuntu-latest, 2.44.0, 17, 3.8.5) (push) Successful in 1m47s
This commit is contained in:
parent
cf618b3123
commit
fa0189c421
@ -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());
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user