chore: add system metrics

This commit is contained in:
d3m0k1d
2026-04-05 05:37:19 +03:00
parent 54e8102a51
commit c2e8037560
13 changed files with 812 additions and 47 deletions
+10
View File
@@ -7,9 +7,19 @@ option go_package="gitea.d3m0k1d.ru/d3m0k1d/HellreigN/proto/proto";
service Collector {
rpc Stream(stream CollectorRequest) returns (CollectorResponse);
rpc ReportServices(ServicesUpdate) returns (ServicesUpdateResp);
rpc ReportSystemMetrics(SystemMetrics) returns (SystemMetricsResp);
}
message ServicesUpdateResp {
}
message SystemMetricsResp {
}
message SystemMetrics {
double cpu_percent = 1; // CPU usage percentage (0-100)
double memory_percent = 2; // RAM usage percentage (0-100)
double disk_percent = 3; // Disk usage percentage (0-100)
double network_rx_bytes = 4; // Network received bytes per second
double network_tx_bytes = 5; // Network transmitted bytes per second
}
message ServicesUpdate {
message ServiceUpdate {
string name = 1;