aboutsummaryrefslogtreecommitdiff
path: root/telemetry/proto/telemetry.proto
blob: 07bc794467e409f0bc437cbc216b348eaa59b7b4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
syntax = "proto3";

package telemetry;

option go_package = "github.com/seaweedfs/seaweedfs/telemetry/proto";

// TelemetryData represents cluster-level telemetry information
message TelemetryData {
  // Unique cluster identifier (generated in-memory)
  string cluster_id = 1;
  
  // SeaweedFS version
  string version = 2;
  
  // Operating system (e.g., "linux/amd64")
  string os = 3;
  
  // Enabled features (e.g., ["filer", "s3api", "mq"])
  repeated string features = 4;
  
  // Deployment type ("standalone", "cluster", "master-only", "volume-only")
  string deployment = 5;
  
  // Number of volume servers in the cluster
  int32 volume_server_count = 6;
  
  // Total disk usage across all volume servers (in bytes)
  uint64 total_disk_bytes = 7;
  
  // Total number of volumes in the cluster
  int32 total_volume_count = 8;
  
  // Number of filer servers in the cluster
  int32 filer_count = 9;
  
  // Number of broker servers in the cluster
  int32 broker_count = 10;
  
  // Unix timestamp when the data was collected
  int64 timestamp = 11;
}

// TelemetryRequest is sent from SeaweedFS clusters to the telemetry server
message TelemetryRequest {
  TelemetryData data = 1;
}

// TelemetryResponse is returned by the telemetry server
message TelemetryResponse {
  bool success = 1;
  string message = 2;
}