forked from MinecraftUtilities/Backend
don't log so much when saving and writing metrics
This commit is contained in:
parent
cf618b3123
commit
fa0189c421
@ -91,11 +91,10 @@ public class MetricService {
|
|||||||
* Save all metrics to Redis.
|
* Save all metrics to Redis.
|
||||||
*/
|
*/
|
||||||
private void saveMetrics() {
|
private void saveMetrics() {
|
||||||
log.info("Saving metrics to Redis");
|
|
||||||
for (Metric<?> metric : metrics.values()) {
|
for (Metric<?> metric : metrics.values()) {
|
||||||
saveMetric(metric);
|
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.
|
* Push all metrics to InfluxDB.
|
||||||
*/
|
*/
|
||||||
private void writeToInflux() {
|
private void writeToInflux() {
|
||||||
log.info("Writing metrics to InfluxDB");
|
|
||||||
for (Metric<?> metric : metrics.values()) {
|
for (Metric<?> metric : metrics.values()) {
|
||||||
influxWriteApi.writePoint(metric.toPoint());
|
influxWriteApi.writePoint(metric.toPoint());
|
||||||
}
|
}
|
||||||
log.info("Wrote {} metrics", metrics.size());
|
log.info("Wrote {} metrics to Influx", metrics.size());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user