kill plugin processes when grafana shuts down
This commit is contained in:
@@ -3,30 +3,66 @@ option go_package = "proto";
|
||||
|
||||
package plugins;
|
||||
|
||||
import "google/protobuf/timestamp.proto";
|
||||
|
||||
// Message represents a simple message sent to the Echo service.
|
||||
message TsdbRequest {
|
||||
int64 from = 1;
|
||||
int64 to = 2;
|
||||
repeated TsdbQuery queries = 3;
|
||||
}
|
||||
|
||||
message TsdbQuery {
|
||||
string queryJson = 1;
|
||||
Timerange timerange = 1;
|
||||
DatasourceInfo datasource = 2;
|
||||
repeated Query queries = 3;
|
||||
}
|
||||
|
||||
message TsdbResponse {
|
||||
string error = 1;
|
||||
string errorString = 2;
|
||||
string refId = 3;
|
||||
string metaJson = 4;
|
||||
repeated TsdbSeries series = 5;
|
||||
//repeat TsdbTables tables = x;
|
||||
message Query {
|
||||
string refId = 1;
|
||||
string modelJson = 2;
|
||||
int64 MaxDataPoints = 3;
|
||||
int64 intervalMs = 4;
|
||||
DatasourceInfo datasource = 5;
|
||||
}
|
||||
|
||||
message Timerange {
|
||||
string from = 1;
|
||||
string to = 2;
|
||||
google.protobuf.Timestamp now = 3;
|
||||
}
|
||||
|
||||
message Response {
|
||||
string message = 1;
|
||||
repeated QueryResult results = 2;
|
||||
}
|
||||
|
||||
message QueryResult {
|
||||
string error = 1;
|
||||
string errorString = 2;
|
||||
string refId = 3;
|
||||
string metaJson = 4;
|
||||
repeated TsdbSeries series = 5;
|
||||
//repeat TsdbTables tables = x;
|
||||
}
|
||||
|
||||
message DatasourceInfo {
|
||||
string name = 1;
|
||||
string type = 2;
|
||||
string access = 3;
|
||||
string url = 4;
|
||||
bool basicAuth = 5;
|
||||
string basicAuthUser = 6;
|
||||
string basicAuthPassword = 7;
|
||||
string jsonData = 8;
|
||||
string secureJsonData = 9;
|
||||
}
|
||||
|
||||
message TsdbSeries {
|
||||
string name = 1;
|
||||
map<string, string> tags = 2;
|
||||
repeated Point points = 3;
|
||||
}
|
||||
|
||||
message Point {
|
||||
google.protobuf.Timestamp timestamp = 1;
|
||||
double value = 2;
|
||||
}
|
||||
|
||||
service TsdbPlugin {
|
||||
rpc Get(TsdbRequest) returns (TsdbResponse);
|
||||
rpc Query(TsdbQuery) returns (Response);
|
||||
}
|
||||
Reference in New Issue
Block a user