Handle new line-protrocol format in handleLine

This commit is contained in:
Lou Knauer
2021-10-07 14:59:07 +02:00
parent 85591e7a03
commit 2fc6ad284f
3 changed files with 77 additions and 21 deletions

View File

@@ -283,7 +283,8 @@ func (m *MemoryStore) Write(selector []string, ts int64, metrics []Metric) error
for _, metric := range metrics {
minfo, ok := m.metrics[metric.Name]
if !ok {
return errors.New("Unknown metric: " + metric.Name)
// return errors.New("Unknown metric: " + metric.Name)
continue
}
b := l.metrics[minfo.offset]