指标数据增加占比数据

This commit is contained in:
GoEdgeLab
2021-07-01 10:39:19 +08:00
parent 3bf67b8334
commit 4512a81859
5 changed files with 270 additions and 61 deletions

View File

@@ -21,4 +21,15 @@ message MetricStat {
NodeCluster nodeCluster = 30;
Node node = 31;
Server server = 32;
int64 sumCount = 40;
float sumTotal = 41;
}
// 需要上传的统计数据
message UploadingMetricStat {
int64 id = 1;
string hash = 2;
repeated string keys = 3;
float value = 4;
}

View File

@@ -19,7 +19,13 @@ service MetricStatService {
// 上传统计数据
message UploadMetricStatsRequest {
repeated MetricStat metricStats = 1;
int64 serverId = 1;
string time = 2;
int64 count = 3;
float total = 4;
int32 version = 5;
int64 itemId = 6;
repeated UploadingMetricStat metricStats = 7;
}
// 计算指标数据数量