Skip to content

Commit

Permalink
tcollector: tcollector.reader.lines_collected metric now tracks the n…
Browse files Browse the repository at this point in the history
…umber of lines collected.

Signed-off-by: Vasiliy Kiryanov <[email protected]>
  • Loading branch information
mikebryant authored and vasiliyk committed Jan 20, 2014
1 parent 316303a commit 1c8cea6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tcollector.py
Original file line number Diff line number Diff line change
Expand Up @@ -319,6 +319,8 @@ def run(self):
def process_line(self, col, line):
"""Parses the given line and appends the result to the reader queue."""

self.lines_collected += 1

col.lines_received += 1
if len(line) >= 1024: # Limit in net.opentsdb.tsd.PipelineFactory
LOG.warning('%s line too long: %s', col.name, line)
Expand Down

0 comments on commit 1c8cea6

Please sign in to comment.