Be specific about required csv header definition (#5007)
This commit is contained in:
@@ -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 != "" {
|
||||||
|
|||||||
Reference in New Issue
Block a user