From 407bdbf2b90b2255e6c5086de308367e054561cb Mon Sep 17 00:00:00 2001 From: Aliaksandr Valialkin Date: Mon, 6 Apr 2020 12:29:28 +0300 Subject: [PATCH] docs/Single-server-VictoriaMetrics.md: cosmetic fixes in `Importing CSV data` chapter --- README.md | 8 ++++---- docs/Single-server-VictoriaMetrics.md | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index 7ecb4cfef..d8d499bea 100644 --- a/README.md +++ b/README.md @@ -441,10 +441,10 @@ The `format` query arg must contain comma-separated list of parsing rules for CS * `` is the position of the CSV column (field). Column numbering starts from 1. The order of parsing rules may be arbitrary. * `` describes the column type. Supported types are: - * `metric` - the corresponding CSV column at `` contains metric value. The metric name is read from the ``. - CSV line must have at least a single metric field. + * `metric` - the corresponding CSV column at `` contains metric value, which must be integer of floating-point number. + The metric name is read from the ``. CSV line must have at least a single metric field. Multiple metric fields per CSV line is OK. * `label` - the corresponding CSV column at `` contains label value. The label name is read from the ``. - CSV line may have arbitrary number of label fields. All these fields are attached to all the configured metrics. + CSV line may have arbitrary number of label fields. All these labels are attached to all the configured metrics. * `time` - the corresponding CSV column at `` contains metric time. CSV line may contain either one or zero columns with time. If CSV line has no time, then the current time is used. The time is applied to all the configured metrics. The format of the time is configured via ``. Supported time formats are: @@ -454,7 +454,7 @@ The `format` query arg must contain comma-separated list of parsing rules for CS * `rfc3339` - timestamp in [RFC3339](https://tools.ietf.org/html/rfc3339) format, i.e. `2006-01-02T15:04:05Z`. * `custom:` - custom layout for the timestamp. The `` may contain arbitrary time layout according to [time.Parse rules in Go](https://golang.org/pkg/time/#Parse). -Each request to `/api/v1/import/csv` can contain arbitrary number of CSV lines. +Each request to `/api/v1/import/csv` may contain arbitrary number of CSV lines. Example for importing CSV data via `/api/v1/import/csv`: diff --git a/docs/Single-server-VictoriaMetrics.md b/docs/Single-server-VictoriaMetrics.md index 66a7e1e23..97ef86a0d 100644 --- a/docs/Single-server-VictoriaMetrics.md +++ b/docs/Single-server-VictoriaMetrics.md @@ -431,10 +431,10 @@ The `format` query arg must contain comma-separated list of parsing rules for CS * `` is the position of the CSV column (field). Column numbering starts from 1. The order of parsing rules may be arbitrary. * `` describes the column type. Supported types are: - * `metric` - the corresponding CSV column at `` contains metric value. The metric name is read from the ``. - CSV line must have at least a single metric field. + * `metric` - the corresponding CSV column at `` contains metric value, which must be integer of floating-point number. + The metric name is read from the ``. CSV line must have at least a single metric field. Multiple metric fields per CSV line is OK. * `label` - the corresponding CSV column at `` contains label value. The label name is read from the ``. - CSV line may have arbitrary number of label fields. All these fields are attached to all the configured metrics. + CSV line may have arbitrary number of label fields. All these labels are attached to all the configured metrics. * `time` - the corresponding CSV column at `` contains metric time. CSV line may contain either one or zero columns with time. If CSV line has no time, then the current time is used. The time is applied to all the configured metrics. The format of the time is configured via ``. Supported time formats are: @@ -444,7 +444,7 @@ The `format` query arg must contain comma-separated list of parsing rules for CS * `rfc3339` - timestamp in [RFC3339](https://tools.ietf.org/html/rfc3339) format, i.e. `2006-01-02T15:04:05Z`. * `custom:` - custom layout for the timestamp. The `` may contain arbitrary time layout according to [time.Parse rules in Go](https://golang.org/pkg/time/#Parse). -Each request to `/api/v1/import/csv` can contain arbitrary number of CSV lines. +Each request to `/api/v1/import/csv` may contain arbitrary number of CSV lines. Example for importing CSV data via `/api/v1/import/csv`: