Skip to content
Snippets Groups Projects
Commit 9ab14c9e authored by Tom Wilkie's avatar Tom Wilkie
Browse files

Add readLines.Inc() call back.


Signed-off-by: default avatarTom Wilkie <tom.wilkie@gmail.com>
parent b2fafdf3
No related branches found
No related tags found
No related merge requests found
......@@ -102,6 +102,8 @@ func (t *tailer) run() {
level.Error(t.logger).Log("msg", "error reading line", "path", t.path, "error", line.Err)
}
readLines.WithLabelValues(t.path).Inc()
if err := t.handler.Handle(model.LabelSet{}, line.Time, line.Text); err != nil {
level.Error(t.logger).Log("msg", "error handling line", "path", t.path, "error", err)
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment