You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+15Lines changed: 15 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -52,6 +52,21 @@ The query editor allows you to query ClickHouse to return time series or tabular
52
52
53
53
Time series visualization options are selectable after adding a `datetime` field type to your query. This field will be used as the timestamp You can select time series visualizations using the visualization options. Grafana interprets timestamp rows without explicit time zone as UTC. Any column except time is treated as a value column.
54
54
55
+
#### Multi-line time series
56
+
57
+
To create multi-line time series, the query must return at least 3 fields.
58
+
- field 1: `datetime`field with an alias of `time`
59
+
- field 2: value to group by
60
+
- field 3+: the metric values
61
+
62
+
For example:
63
+
```sql
64
+
SELECT log_time as time, machine_group, avg(disk_free) as avg_disk_free
65
+
from mgbench.logs1
66
+
group by machine_group, log_time
67
+
order by log_time
68
+
```
69
+
55
70
### Query as table
56
71
57
72
Table visualizations will always be available for any valid ClickHouse query.
0 commit comments