优化看板

This commit is contained in:
刘祥超
2021-07-13 15:49:34 +08:00
parent 50d8a575a6
commit 4e84c7b376
8 changed files with 1172 additions and 523 deletions

View File

@@ -12,4 +12,6 @@ message ServerDailyStat {
int64 countRequests = 6;
int64 countCachedRequests = 7;
int64 createdAt = 4;
int64 countAttackRequests = 8;
int64 attackBytes = 9;
}

View File

@@ -212,6 +212,7 @@ message ComposeAdminDashboardResponse {
repeated DailyTrafficStat dailyTrafficStats = 30;
repeated HourlyTrafficStat hourlyTrafficStats = 31;
UpgradeInfo nodeUpgradeInfo = 32;
UpgradeInfo apiNodeUpgradeInfo = 33;
UpgradeInfo monitorNodeUpgradeInfo = 34;
@@ -219,14 +220,41 @@ message ComposeAdminDashboardResponse {
UpgradeInfo authorityNodeUpgradeInfo = 36;
UpgradeInfo nsNodeUpgradeInfo = 37;
repeated NodeStat topNodeStats = 38;
repeated DomainStat topDomainStats = 39;
message DailyTrafficStat {
string day = 1;
int64 bytes = 2;
int64 cachedBytes = 3;
int64 countRequests = 4;
int64 countCachedRequests = 5;
int64 countAttackRequests = 6;
int64 attackBytes = 7;
}
message HourlyTrafficStat {
string hour = 1;
int64 bytes = 2;
int64 cachedBytes = 3;
int64 countRequests = 4;
int64 countCachedRequests = 5;
int64 countAttackRequests = 6;
int64 attackBytes = 7;
}
message NodeStat {
int64 nodeId = 1;
string nodeName = 2;
int64 countRequests = 3;
int64 bytes = 4;
}
message DomainStat {
int64 serverId = 1;
string domain = 2;
int64 countRequests = 3;
int64 bytes = 4;
}
// 节点升级信息

View File

@@ -33,6 +33,8 @@ message UploadServerDailyStatsRequest {
int64 cachedBytes = 4;
int64 countRequests = 5;
int64 countCachedRequests = 6;
int64 countAttackRequests = 8;
int64 attackBytes = 9;
int64 createdAt = 7;
}
}

View File

@@ -60,6 +60,8 @@ message ComposeServerStatNodeClusterBoardResponse {
int64 cachedBytes = 3;
int64 countRequests = 4;
int64 countCachedRequests = 5;
int64 countAttackRequests = 6;
int64 attackBytes = 7;
}
message HourlyTrafficStat {
@@ -68,6 +70,8 @@ message ComposeServerStatNodeClusterBoardResponse {
int64 cachedBytes = 3;
int64 countRequests = 4;
int64 countCachedRequests = 5;
int64 countAttackRequests = 6;
int64 attackBytes = 7;
}
message NodeStat {
@@ -75,6 +79,8 @@ message ComposeServerStatNodeClusterBoardResponse {
string nodeName = 2;
int64 countRequests = 3;
int64 bytes = 4;
int64 countAttackRequests = 6;
int64 attackBytes = 7;
}
message DomainStat {
@@ -82,6 +88,8 @@ message ComposeServerStatNodeClusterBoardResponse {
string domain = 2;
int64 countRequests = 3;
int64 bytes = 4;
int64 countAttackRequests = 6;
int64 attackBytes = 7;
}
message MetricData {
@@ -126,6 +134,8 @@ message ComposeServerStatNodeBoardResponse {
int64 cachedBytes = 3;
int64 countRequests = 4;
int64 countCachedRequests = 5;
int64 countAttackRequests = 6;
int64 attackBytes = 7;
}
message HourlyTrafficStat {
@@ -134,6 +144,8 @@ message ComposeServerStatNodeBoardResponse {
int64 cachedBytes = 3;
int64 countRequests = 4;
int64 countCachedRequests = 5;
int64 countAttackRequests = 6;
int64 attackBytes = 7;
}
message DomainStat {
@@ -141,6 +153,8 @@ message ComposeServerStatNodeBoardResponse {
string domain = 2;
int64 countRequests = 3;
int64 bytes = 4;
int64 countAttackRequests = 6;
int64 attackBytes = 7;
}
message MetricData {
@@ -168,6 +182,8 @@ message ComposeServerStatBoardResponse {
int64 cachedBytes = 3;
int64 countRequests = 4;
int64 countCachedRequests = 5;
int64 countAttackRequests = 6;
int64 attackBytes = 7;
}
message HourlyTrafficStat {
@@ -176,6 +192,8 @@ message ComposeServerStatBoardResponse {
int64 cachedBytes = 3;
int64 countRequests = 4;
int64 countCachedRequests = 5;
int64 countAttackRequests = 6;
int64 attackBytes = 7;
}
message NodeStat {
@@ -183,6 +201,8 @@ message ComposeServerStatBoardResponse {
string nodeName = 2;
int64 countRequests = 3;
int64 bytes = 4;
int64 countAttackRequests = 6;
int64 attackBytes = 7;
}
message DomainStat {
@@ -190,6 +210,8 @@ message ComposeServerStatBoardResponse {
string domain = 2;
int64 countRequests = 3;
int64 bytes = 4;
int64 countAttackRequests = 6;
int64 attackBytes = 7;
}
message MetricData {