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: CHANGELOG.md
+2-1
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,8 @@
4
4
5
5
Key changes:
6
6
7
-
* Able to define dashboard variables with this data source
7
+
* Able to define dashboard variables with this data source. Please make sure turning off the streaming query mode in the SQL to populate the variable values, and only return 1 or 2 columns. You can also refer to `__from` and `__to` variables in the SQL to get the time range of the dashboard.
8
+
* Able to define annotations with this data source
8
9
* Use default values for HTTP/TCP ports and username if they are not set in the data source configuration
Copy file name to clipboardexpand all lines: README.md
+8-3
Original file line number
Diff line number
Diff line change
@@ -7,7 +7,7 @@ As the core engine of [Timeplus Enterprise](https://timeplus.com), [Proton](http
7
7
8
8
## Requirements
9
9
10
-
Grafana v10.0.3 or above
10
+
Grafana v11.3 or above (older versions may work but not verified)
11
11
12
12
A running Timeplus Proton or Timeplus Enterprise instance with TCP port 8463 (for database connection) and HTTP port 3218 (for query analazyer REST API).
13
13
@@ -24,14 +24,19 @@ A data source for Timeplus is created automatically.
24
24
25
25
In the navigation menu, choose Connections -> Add new connection.
26
26
27
-
Search for Timeplus and accept the default settings (localhost,port 8463 and 3218 as proton connection). This plugin is expected to run in localhost or trusted network. Username and password for Timeplus will be added later. This tool supports self-hosted Timeplus Enterprise, but not for Timeplus Cloud.
27
+
Search for Timeplus and accept the default settings (localhost,port 8463 and 3218 as proton connection). This tool supports self-hosted Timeplus Enterprise, but not for Timeplus Cloud.
28
28
29
29
Create a new dashboard or explore data with this Timeplus data source.
30
30
31
-
There are unbounded streaming query and bounded historical query in proton, all queries like `select count(*) from stream_name` are streaming queries, and adding `table` function to the stream name will turn the query into bounded query, e.g. `select count(*) from table(stream_name)`.
31
+
There are unbounded streaming query and bounded historical query in Timeplus, all queries like `select count(*) from stream_name` are streaming queries, and adding `table` function to the stream name will turn the query into bounded query, e.g. `select count(*) from table(stream_name)`.
32
32
33
33

34
34
35
+
### Query Variables
36
+
You can define dashboard variables with this data source. Please make sure turning off the streaming query mode in the SQL to populate the variable values, and only return 1 or 2 columns. When there is 1 column returned, it will be set as both value and label. If there are 2 columns, the first column will be set as value and the second column as the label. You can also refer to `__from` and `__to` variables in the SQL to get the time range of the dashboard, e.g.:
37
+
```sql
38
+
SELECT distinct product_id FROM table(coinbase) where _tp_time < to_datetime($__to/1000) and _tp_time > to_datetime($__from/1000)
0 commit comments