mirror of
https://github.com/grafana/grafana.git
synced 2024-11-25 02:10:45 -06:00
Document required order for time series queries (#13204)
This commit is contained in:
parent
7a117a6b6c
commit
7c78b64a36
@ -174,6 +174,8 @@ The resulting table panel:
|
||||
If you set `Format as` to `Time series`, for use in Graph panel for example, then the query must must have a column named `time` that returns either a sql datetime or any numeric datatype representing unix epoch in seconds. You may return a column named `metric` that is used as metric name for the value column. Any column except `time` and `metric` is treated as a value column. If you omit the `metric` column, the name of the value column will be the metric name. You may select multiple value columns, each will have its name as metric.
|
||||
If you return multiple value columns and a column named `metric` then this column is used as prefix for the series name (only available in Grafana 5.3+).
|
||||
|
||||
Resultsets of time series queries need to be sorted by time.
|
||||
|
||||
**Example database table:**
|
||||
|
||||
```sql
|
||||
|
@ -129,6 +129,8 @@ Any column except `time` and `metric` is treated as a value column.
|
||||
You may return a column named `metric` that is used as metric name for the value column.
|
||||
If you return multiple value columns and a column named `metric` then this column is used as prefix for the series name (only available in Grafana 5.3+).
|
||||
|
||||
Resultsets of time series queries need to be sorted by time.
|
||||
|
||||
**Example with `metric` column:**
|
||||
|
||||
```sql
|
||||
|
@ -129,6 +129,8 @@ Any column except `time` and `metric` is treated as a value column.
|
||||
You may return a column named `metric` that is used as metric name for the value column.
|
||||
If you return multiple value columns and a column named `metric` then this column is used as prefix for the series name (only available in Grafana 5.3+).
|
||||
|
||||
Resultsets of time series queries need to be sorted by time.
|
||||
|
||||
**Example with `metric` column:**
|
||||
|
||||
```sql
|
||||
|
@ -45,6 +45,8 @@ Optional:
|
||||
- If multiple value columns are returned the metric column is used as prefix.
|
||||
- If no column named metric is found the column name of the value column is used as series name
|
||||
|
||||
Resultsets of time series queries need to be sorted by time.
|
||||
|
||||
Table:
|
||||
- return any set of columns
|
||||
|
||||
|
@ -45,6 +45,8 @@ Optional:
|
||||
- If multiple value columns are returned the metric column is used as prefix.
|
||||
- If no column named metric is found the column name of the value column is used as series name
|
||||
|
||||
Resultsets of time series queries need to be sorted by time.
|
||||
|
||||
Table:
|
||||
- return any set of columns
|
||||
|
||||
|
@ -143,6 +143,8 @@ Optional:
|
||||
- If multiple value columns are returned the metric column is used as prefix.
|
||||
- If no column named metric is found the column name of the value column is used as series name
|
||||
|
||||
Resultsets of time series queries need to be sorted by time.
|
||||
|
||||
Table:
|
||||
- return any set of columns
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user