drop line if can't parse
This commit is contained in:
		| @@ -22,9 +22,10 @@ func (unparsed RawC) parse(parsed chan<- singleLine) { | ||||
| 		if err := line.parse(); err != nil { | ||||
| 			promRecordPrefixParsingErr.WithLabelValues(raw.MetricsName).Add(1) | ||||
| 			log.Printf("parsing kubernetes log line in %q: %e", raw.File.Path, err) | ||||
|  | ||||
| 			continue | ||||
| 		} | ||||
|  | ||||
| 		// TODO: should this only be on success? | ||||
| 		parsed <- line | ||||
| 	} | ||||
| } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user