diff options
author | Luck <git@lucko.me> | 2022-04-18 11:54:40 +0100 |
---|---|---|
committer | Luck <git@lucko.me> | 2022-04-18 11:54:40 +0100 |
commit | 45edd6197aa777d0c746f37a813d6be4ca916694 (patch) | |
tree | 967c3998eb21a363e9896654dccd86e70e0368b0 /spark-common/src/main/proto/spark | |
parent | ecc9ac3fdb731ef3beee2ce45ddf4b355b12745f (diff) | |
download | spark-45edd6197aa777d0c746f37a813d6be4ca916694.tar.gz spark-45edd6197aa777d0c746f37a813d6be4ca916694.tar.bz2 spark-45edd6197aa777d0c746f37a813d6be4ca916694.zip |
Include network interface statistics in '/spark health' command
Diffstat (limited to 'spark-common/src/main/proto/spark')
-rw-r--r-- | spark-common/src/main/proto/spark/spark.proto | 22 |
1 files changed, 15 insertions, 7 deletions
diff --git a/spark-common/src/main/proto/spark/spark.proto b/spark-common/src/main/proto/spark/spark.proto index d800762..95eaacd 100644 --- a/spark-common/src/main/proto/spark/spark.proto +++ b/spark-common/src/main/proto/spark/spark.proto @@ -31,6 +31,7 @@ message SystemStatistics { Os os = 5; Java java = 6; int64 uptime = 7; + map<string, NetInterface> net = 8; message Cpu { int32 threads = 1; @@ -77,6 +78,13 @@ message SystemStatistics { string vendor_version = 3; string vm_args = 4; } + + message NetInterface { + RollingAverageValues rx_bytes_per_second = 1; + RollingAverageValues tx_bytes_per_second = 2; + RollingAverageValues rx_packets_per_second = 3; + RollingAverageValues tx_packets_per_second = 4; + } } message PlatformStatistics { @@ -116,14 +124,14 @@ message PlatformStatistics { message Ping { RollingAverageValues last15m = 1; } +} - message RollingAverageValues { - double mean = 1; - double max = 2; - double min = 3; - double median = 4; - double percentile95 = 5; - } +message RollingAverageValues { + double mean = 1; + double max = 2; + double min = 3; + double median = 4; + double percentile95 = 5; } message CommandSenderMetadata { |