Skip to content

Commit

Permalink
fix nodes grouping and uptime calculations (ydb-platform#10075)
Browse files Browse the repository at this point in the history
  • Loading branch information
adameat authored Oct 4, 2024
1 parent a4dca6d commit f2805c6
Show file tree
Hide file tree
Showing 3 changed files with 116 additions and 58 deletions.
2 changes: 1 addition & 1 deletion ydb/core/viewer/json_handlers_viewer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ void InitViewerHealthCheckJsonHandler(TJsonHandlers& handlers) {
}

void InitViewerNodesJsonHandler(TJsonHandlers& handlers) {
handlers.AddHandler("/viewer/nodes", new TJsonHandler<TJsonNodes>(TJsonNodes::GetSwagger()), 8);
handlers.AddHandler("/viewer/nodes", new TJsonHandler<TJsonNodes>(TJsonNodes::GetSwagger()), 9);
}

void InitViewerACLJsonHandler(TJsonHandlers &jsonHandlers) {
Expand Down
5 changes: 5 additions & 0 deletions ydb/core/viewer/protos/viewer.proto
Original file line number Diff line number Diff line change
Expand Up @@ -525,6 +525,11 @@ message TNodeGroup {

message TNodeInfo {
uint32 NodeId = 1;
string Database = 2;
int32 UptimeSeconds = 3; // negative for disconnect time
bool Disconnected = 4;
float CpuUsage = 5;
float DiskSpaceUsage = 6;
NKikimrWhiteboard.TSystemStateInfo SystemState = 10;
repeated NKikimrWhiteboard.TPDiskStateInfo PDisks = 20;
repeated NKikimrWhiteboard.TVDiskStateInfo VDisks = 30;
Expand Down
Loading

0 comments on commit f2805c6

Please sign in to comment.