Open jamiethermo opened 7 years ago
main INFO: 2017/02/08 01:20:58 workers.go:86: Systemd CloudWatch: batches sent 5146, idleCount 61454607, emptyCount 61459673
61,454,607 lines of spew and counting. Also, that suggests this thing is polling far to fast.
now := time.Now().Unix() if now-r.lastMetricTime > 120 { now = r.lastMetricTime r.logger.Infof("Systemd CloudWatch: batches sent %d, idleCount %d, emptyCount %d", r.batchCounter, r.idleCounter, r.emptyCounter) }
Surely you want r.lastMetricTime = now on that third line.
r.lastMetricTime = now
Same problem here. Any change to get this fixed?
fixed in https://github.com/advantageous/systemd-cloud-watch/pull/16
61,454,607 lines of spew and counting. Also, that suggests this thing is polling far to fast.
Surely you want
r.lastMetricTime = now
on that third line.