feat: add promql query support (#13)

* feat: add promql query support

* feat: add go sources

* refactor: rename promql to prom_range_query

* fix: lint issue
This commit is contained in:
Ning Sun
2023-03-13 11:34:53 +08:00
committed by GitHub
parent ad01872950
commit 3a71515056
3 changed files with 176 additions and 58 deletions
+8
View File
@@ -47,9 +47,17 @@ message QueryRequest {
oneof query {
string sql = 1;
bytes logical_plan = 2;
PromRangeQuery prom_range_query = 3;
}
}
message PromRangeQuery {
string query = 1;
string start = 2;
string end = 3;
string step = 4;
}
message InsertRequest {
string table_name = 1;