| 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: 32768 |
| 25 |
buckets: 24 |
| 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 |
# tcp |
| 34 |
- counter: syscall_write |
| 35 |
doc: Number of write syscalls (or equivalent - eg sendmsg) made by this process |
| 36 |
- counter: syscall_read |
| 37 |
doc: Number of read syscalls (or equivalent - eg recvmsg) made by this process |
| 38 |
- histogram: tcp_write_size |
| 39 |
max: 16777216 # 16 meg max write tracked |
| 40 |
buckets: 20 |
| 41 |
doc: Number of bytes offered to each syscall_write |
| 42 |
- histogram: tcp_write_iov_size |
| 43 |
max: 80 |
| 44 |
buckets: 10 |
| 45 |
doc: Number of byte segments offered to each syscall_write |
| 46 |
- counter: tcp_read_alloc_8k |
| 47 |
doc: Number of 8k allocations by the TCP subsystem for reading |
| 48 |
- counter: tcp_read_alloc_64k |
| 49 |
doc: Number of 64k allocations by the TCP subsystem for reading |
| 50 |
- histogram: tcp_read_size |
| 51 |
max: 16777216 |
| 52 |
buckets: 20 |
| 53 |
doc: Number of bytes received by each syscall_read |
| 54 |
- histogram: tcp_read_offer |
| 55 |
max: 16777216 |
| 56 |
buckets: 20 |
| 57 |
doc: Number of bytes offered to each syscall_read |
| 58 |
- histogram: tcp_read_offer_iov_size |
| 59 |
max: 80 |
| 60 |
buckets: 10 |
| 61 |
doc: Number of byte segments offered to each syscall_read |
| 62 |
# chttp2 |
| 63 |
- histogram: http2_send_message_size |
| 64 |
max: 16777216 |
| 65 |
buckets: 20 |
| 66 |
doc: Size of messages received by HTTP2 transport |
| 67 |
- counter: http2_settings_writes |
| 68 |
doc: Number of settings frames sent |
| 69 |
- counter: http2_pings_sent |
| 70 |
doc: Number of HTTP2 pings sent by process |
| 71 |
- counter: http2_writes_begun |
| 72 |
doc: Number of HTTP2 writes initiated |
| 73 |
- counter: http2_transport_stalls |
| 74 |
doc: Number of times sending was completely stalled by the transport flow control window |
| 75 |
- counter: http2_stream_stalls |
| 76 |
doc: Number of times sending was completely stalled by the stream flow control window |
| 77 |
# completion queues |
| 78 |
- counter: cq_pluck_creates |
| 79 |
doc: Number of completion queues created for cq_pluck (indicates sync api usage) |
| 80 |
- counter: cq_next_creates |
| 81 |
doc: Number of completion queues created for cq_next (indicates cq async api usage) |
| 82 |
- counter: cq_callback_creates |
| 83 |
doc: Number of completion queues created for cq_callback (indicates callback api usage) |