|
|
|
@ -128,6 +128,8 @@ const absl::string_view |
|
|
|
|
"client_subchannels_created", |
|
|
|
|
"server_channels_created", |
|
|
|
|
"insecure_connections_created", |
|
|
|
|
"rq_connections_dropped", |
|
|
|
|
"rq_calls_dropped", |
|
|
|
|
"syscall_write", |
|
|
|
|
"syscall_read", |
|
|
|
|
"tcp_read_alloc_8k", |
|
|
|
@ -165,6 +167,8 @@ const absl::string_view GlobalStats::counter_doc[static_cast<int>( |
|
|
|
|
"Number of client subchannels created", |
|
|
|
|
"Number of server channels created", |
|
|
|
|
"Number of insecure connections created", |
|
|
|
|
"Number of connections dropped due to resource quota exceeded", |
|
|
|
|
"Number of calls dropped due to resource quota exceeded", |
|
|
|
|
"Number of write syscalls (or equivalent - eg sendmsg) made by this " |
|
|
|
|
"process", |
|
|
|
|
"Number of read syscalls (or equivalent - eg recvmsg) made by this process", |
|
|
|
@ -464,6 +468,8 @@ GlobalStats::GlobalStats() |
|
|
|
|
client_subchannels_created{0}, |
|
|
|
|
server_channels_created{0}, |
|
|
|
|
insecure_connections_created{0}, |
|
|
|
|
rq_connections_dropped{0}, |
|
|
|
|
rq_calls_dropped{0}, |
|
|
|
|
syscall_write{0}, |
|
|
|
|
syscall_read{0}, |
|
|
|
|
tcp_read_alloc_8k{0}, |
|
|
|
@ -601,6 +607,10 @@ std::unique_ptr<GlobalStats> GlobalStatsCollector::Collect() const { |
|
|
|
|
data.server_channels_created.load(std::memory_order_relaxed); |
|
|
|
|
result->insecure_connections_created += |
|
|
|
|
data.insecure_connections_created.load(std::memory_order_relaxed); |
|
|
|
|
result->rq_connections_dropped += |
|
|
|
|
data.rq_connections_dropped.load(std::memory_order_relaxed); |
|
|
|
|
result->rq_calls_dropped += |
|
|
|
|
data.rq_calls_dropped.load(std::memory_order_relaxed); |
|
|
|
|
result->syscall_write += data.syscall_write.load(std::memory_order_relaxed); |
|
|
|
|
result->syscall_read += data.syscall_read.load(std::memory_order_relaxed); |
|
|
|
|
result->tcp_read_alloc_8k += |
|
|
|
@ -716,6 +726,9 @@ std::unique_ptr<GlobalStats> GlobalStats::Diff(const GlobalStats& other) const { |
|
|
|
|
server_channels_created - other.server_channels_created; |
|
|
|
|
result->insecure_connections_created = |
|
|
|
|
insecure_connections_created - other.insecure_connections_created; |
|
|
|
|
result->rq_connections_dropped = |
|
|
|
|
rq_connections_dropped - other.rq_connections_dropped; |
|
|
|
|
result->rq_calls_dropped = rq_calls_dropped - other.rq_calls_dropped; |
|
|
|
|
result->syscall_write = syscall_write - other.syscall_write; |
|
|
|
|
result->syscall_read = syscall_read - other.syscall_read; |
|
|
|
|
result->tcp_read_alloc_8k = tcp_read_alloc_8k - other.tcp_read_alloc_8k; |
|
|
|
|