Skip to content

Commit

Permalink
Also log the finished sample
Browse files Browse the repository at this point in the history
for debugging, it's useful to know what comes in as well as what goes
out.

Signed-off-by: Matthias Rampke <[email protected]>
  • Loading branch information
Matthias Rampke committed Sep 11, 2018
1 parent f0fafca commit ec63498
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,7 @@ func (c *graphiteCollector) processLine(line string) {
Help: fmt.Sprintf("Graphite metric %s", originalName),
Timestamp: time.Unix(int64(timestamp), int64(math.Mod(timestamp, 1.0)*1e9)),
}
log.Debugf("Sample: %+v", sample)
lastProcessed.Set(float64(time.Now().UnixNano()) / 1e9)
c.ch <- &sample
}
Expand Down

0 comments on commit ec63498

Please sign in to comment.