Skip to content

Commit 6e9d66b

Browse files
Implement monitor service
1 parent 77631bd commit 6e9d66b

File tree

16 files changed

+582
-2163
lines changed

16 files changed

+582
-2163
lines changed
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
syntax = "proto3";
2+
3+
import "google/protobuf/empty.proto";
4+
5+
package sorock_monitor;
6+
7+
message Shard {
8+
uint32 id = 1;
9+
}
10+
11+
message Membership {
12+
repeated string members = 1;
13+
}
14+
15+
message LogMetrics {
16+
uint64 head_index = 1;
17+
uint64 snap_index = 2;
18+
uint64 app_index = 3;
19+
uint64 commit_index = 4;
20+
uint64 last_index = 5;
21+
}
22+
23+
service Monitor {
24+
rpc GetMembership(Shard) returns (Membership) {}
25+
rpc GetLogMetrics(Shard) returns (stream LogMetrics) {}
26+
}

0 commit comments

Comments
 (0)