Be specific about required csv header definition (#5007)
This commit is contained in:
parent
7a779a7550
commit
9c9511bde9
|
@ -226,7 +226,7 @@ func newCSVParser(metricName string,
|
||||||
defaultTags map[string]string) (Parser, error) {
|
defaultTags map[string]string) (Parser, error) {
|
||||||
|
|
||||||
if headerRowCount == 0 && len(columnNames) == 0 {
|
if headerRowCount == 0 && len(columnNames) == 0 {
|
||||||
return nil, fmt.Errorf("there must be a header if `csv_column_names` is not specified")
|
return nil, fmt.Errorf("`csv_header_row_count` must be defined if `csv_column_names` is not specified")
|
||||||
}
|
}
|
||||||
|
|
||||||
if delimiter != "" {
|
if delimiter != "" {
|
||||||
|
|
Loading…
Reference in New Issue