针对各种类型grpc请求耗时统计场景,etcd提供监控数据。
# etcd容器增加环境变量
env:
- name: ETCD_METRICS
value: extensive
curl -s http://127.0.0.1:2381/metrics | grep grpc_server_handling_seconds_bucket
grpc_method包含了Alarm/AuthDisable/AuthEnable/Authenticate/Check/Compact/Defragment/DeleteRange/Hash/HashKV/LeaseGrant/LeaseKeepAlive/LeaseLeases/LeaseRevoke/LeaseTimeToLive/MemberAdd/MemberList/MemberPromote/MemberRemove/MemberUpdate/MoveLeader/Put/Range/RoleAdd/RoleDelete/RoleGet/RoleGrantPermission/RoleList/RoleRevokePermission/Snapshot/Status/Txn/UserAdd/UserChangePassword/UserDelete/UserGet/UserGrantRole/UserList/UserRevokeRole/Watch这些类型。
其中,Range是用户读,Txn是用户写。
标签:Txn,Etcd,grpc,耗时,Range,etcd From: https://www.cnblogs.com/WJQ2017/p/18190228