Skip to content

Commit e355932

Browse files
committed
2.1.0-beta.2,update readme
1 parent 6d25cad commit e355932

File tree

5 files changed

+14
-8
lines changed

5 files changed

+14
-8
lines changed

CHANGELOG.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@
44

55
Key changes:
66

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
89
* Use default values for HTTP/TCP ports and username if they are not set in the data source configuration
910

1011
## 2.0.0

Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
ID = timeplus-proton-datasource
2-
Version = 2.1.0-beta.1
2+
Version = 2.1.0-beta.2
33

44
init:
55
npm install

README.md

+8-3
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ As the core engine of [Timeplus Enterprise](https://timeplus.com), [Proton](http
77

88
## Requirements
99

10-
Grafana v10.0.3 or above
10+
Grafana v11.3 or above (older versions may work but not verified)
1111

1212
A running Timeplus Proton or Timeplus Enterprise instance with TCP port 8463 (for database connection) and HTTP port 3218 (for query analazyer REST API).
1313

@@ -24,14 +24,19 @@ A data source for Timeplus is created automatically.
2424

2525
In the navigation menu, choose Connections -> Add new connection.
2626

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.
2828

2929
Create a new dashboard or explore data with this Timeplus data source.
3030

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)`.
3232

3333
![query editor](src/img/query.png)
3434

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)
39+
```
3540

3641
## Development
3742

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "timeplus-proton-datasource",
3-
"version": "2.1.0-beta.1",
3+
"version": "2.1.0-beta.2",
44
"description": "Grafana data source plugin to connect to Timeplus and visualize streaming or batch queries.",
55
"scripts": {
66
"build": "webpack -c ./.config/webpack/webpack.config.ts --env production",

src/plugin.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@
2424
{ "name": "Query Editor", "path": "img/query.png" },
2525
{ "name": "Dashboard", "path": "img/dashboard.png" }
2626
],
27-
"version": "2.1.0-beta.1",
28-
"updated": "2024-11-05"
27+
"version": "2.1.0-beta.2",
28+
"updated": "2025-01-09"
2929
},
3030
"dependencies": {
3131
"grafanaDependency": ">=10.4.0",

0 commit comments

Comments
 (0)