• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright 2017 gRPC authors.
2#
3# Licensed under the Apache License, Version 2.0 (the "License");
4# you may not use this file except in compliance with the License.
5# You may obtain a copy of the License at
6#
7#     http://www.apache.org/licenses/LICENSE-2.0
8#
9# Unless required by applicable law or agreed to in writing, software
10# distributed under the License is distributed on an "AS IS" BASIS,
11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12# See the License for the specific language governing permissions and
13# limitations under the License.
14
15# Stats data declaration
16# use tools / codegen / core / gen_stats_data.py to turn this into stats_data.h
17
18# overall
19- counter: client_calls_created
20  doc: Number of client side calls created by this process
21- counter: server_calls_created
22  doc: Number of server side calls created by this process
23- histogram: call_initial_size
24  max: 65536
25  buckets: 26
26  doc: Initial size of the grpc_call arena created at call start
27- counter: client_channels_created
28  doc: Number of client channels created
29- counter: client_subchannels_created
30  doc: Number of client subchannels created
31- counter: server_channels_created
32  doc: Number of server channels created
33- counter: insecure_connections_created
34  doc: Number of insecure connections created
35# tcp
36- counter: syscall_write
37  doc: Number of write syscalls (or equivalent - eg sendmsg) made by this process
38- counter: syscall_read
39  doc: Number of read syscalls (or equivalent - eg recvmsg) made by this process
40- histogram: tcp_write_size
41  max: 16777216 # 16 meg max write tracked
42  buckets: 20
43  doc: Number of bytes offered to each syscall_write
44- histogram: tcp_write_iov_size
45  max: 80
46  buckets: 10
47  doc: Number of byte segments offered to each syscall_write
48- counter: tcp_read_alloc_8k
49  doc: Number of 8k allocations by the TCP subsystem for reading
50- counter: tcp_read_alloc_64k
51  doc: Number of 64k allocations by the TCP subsystem for reading
52- histogram: tcp_read_size
53  max: 16777216
54  buckets: 20
55  doc: Number of bytes received by each syscall_read
56- histogram: tcp_read_offer
57  max: 16777216
58  buckets: 20
59  doc: Number of bytes offered to each syscall_read
60- histogram: tcp_read_offer_iov_size
61  max: 80
62  buckets: 10
63  doc: Number of byte segments offered to each syscall_read
64# chttp2
65- histogram: http2_send_message_size
66  max: 16777216
67  buckets: 20
68  doc: Size of messages received by HTTP2 transport
69- counter: http2_settings_writes
70  doc: Number of settings frames sent
71- counter: http2_pings_sent
72  doc: Number of HTTP2 pings sent by process
73- counter: http2_writes_begun
74  doc: Number of HTTP2 writes initiated
75- counter: http2_transport_stalls
76  doc: Number of times sending was completely stalled by the transport flow control window
77- counter: http2_stream_stalls
78  doc: Number of times sending was completely stalled by the stream flow control window
79- histogram: http2_metadata_size
80  max: 65536
81  buckets: 26
82  doc: Number of bytes consumed by metadata, according to HPACK accounting rules
83# completion queues
84- counter: cq_pluck_creates
85  doc: Number of completion queues created for cq_pluck (indicates sync api usage)
86- counter: cq_next_creates
87  doc: Number of completion queues created for cq_next (indicates cq async api usage)
88- counter: cq_callback_creates
89  doc: Number of completion queues created for cq_callback (indicates callback api usage)
90# wrr
91- histogram: wrr_subchannel_list_size
92  doc: Number of subchannels in a subchannel list at picker creation time
93  max: 10000
94  buckets: 20
95- histogram: wrr_subchannel_ready_size
96  doc: Number of READY subchannels in a subchannel list at picker creation time
97  max: 10000
98  buckets: 20
99- counter: wrr_updates
100  doc: Number of wrr updates that have been received
101# work serializer
102- histogram: work_serializer_run_time_ms
103  doc: Number of milliseconds work serializers run for
104  max: 100000
105  buckets: 20
106- histogram: work_serializer_work_time_ms
107  doc: When running, how many milliseconds are work serializers actually doing work
108  max: 100000
109  buckets: 20
110- histogram: work_serializer_work_time_per_item_ms
111  doc: How long do individual items take to process in work serializers
112  max: 100000
113  buckets: 20
114- histogram: work_serializer_items_per_run
115  doc: How many callbacks are executed when a work serializer runs
116  max: 10000
117  buckets: 20
118- counter: work_serializer_items_enqueued
119  doc: Number of items enqueued onto work serializers
120- counter: work_serializer_items_dequeued
121  doc: Number of items dequeued from work serializers
122- counter: econnaborted_count
123  doc: Number of ECONNABORTED errors
124- counter: econnreset_count
125  doc: Number of ECONNRESET errors
126- counter: epipe_count
127  doc: Number of EPIPE errors
128- counter: etimedout_count
129  doc: Number of ETIMEDOUT errors
130- counter: econnrefused_count
131  doc: Number of ECONNREFUSED errors
132- counter: enetunreach_count
133  doc: Number of ENETUNREACH errors
134- counter: enomsg_count
135  doc: Number of ENOMSG errors
136- counter: enotconn_count
137  doc: Number of ENOTCONN errors
138- counter: enobufs_count
139  doc: Number of ENOBUFS errors
140- counter: uncommon_io_error_count
141  doc: Number of uncommon io errors
142- counter: msg_errqueue_error_count
143  doc: Number of uncommon errors returned by MSG_ERRQUEUE
144- histogram: chaotic_good_sendmsgs_per_write_control
145  doc: Number of sendmsgs per control channel endpoint write
146  max: 100
147  buckets: 20
148- histogram: chaotic_good_recvmsgs_per_read_control
149  doc: Number of recvmsgs per control channel endpoint read
150  max: 100
151  buckets: 20
152- histogram: chaotic_good_sendmsgs_per_write_data
153  doc: Number of sendmsgs per data channel endpoint write
154  max: 100
155  buckets: 20
156- histogram: chaotic_good_recvmsgs_per_read_data
157  doc: Number of recvmsgs per data channel endpoint read
158  max: 100
159  buckets: 20
160- histogram: chaotic_good_thread_hops_per_write_control
161  doc: Number of thread hops per control channel endpoint write
162  max: 100
163  buckets: 20
164- histogram: chaotic_good_thread_hops_per_read_control
165  doc: Number of thread hops per control channel endpoint read
166  max: 100
167  buckets: 20
168- histogram: chaotic_good_thread_hops_per_write_data
169  doc: Number of thread hops per data channel endpoint write
170  max: 100
171  buckets: 20
172- histogram: chaotic_good_thread_hops_per_read_data
173  doc: Number of thread hops per data channel endpoint read
174  max: 100
175  buckets: 20
176- histogram: chaotic_good_tcp_read_size_data
177  max: 16777216
178  buckets: 20
179  doc: Number of bytes received by each syscall_read in the data channel
180- histogram: chaotic_good_tcp_read_size_control
181  max: 16777216
182  buckets: 20
183  doc: Number of bytes received by each syscall_read in the control channel
184- histogram: chaotic_good_tcp_read_offer_data
185  max: 16777216
186  buckets: 20
187  doc: Number of bytes offered to each syscall_read in the data channel
188- histogram: chaotic_good_tcp_read_offer_control
189  max: 16777216
190  buckets: 20
191  doc: Number of bytes offered to each syscall_read in the control channel
192- histogram: chaotic_good_tcp_write_size_data
193  max: 16777216
194  buckets: 20
195  doc: Number of bytes offered to each syscall_write in the data channel
196- histogram: chaotic_good_tcp_write_size_control
197  max: 16777216
198  buckets: 20
199  doc: Number of bytes offered to each syscall_write in the control channel
200
201