昨天已经介绍过,透过 grafana 监控 matching 的品质 ,今天来介绍一下,透过 grafana 监控服务在资源上的消耗,包含了 gRPC 连线状况、Redis 的存取状况,以及由 golang 撰写的 Open-Match,核心程序所消耗的资源。
由於是由连线产生的 mertics 所揭露的资讯,可以用来观察 Open-Match 核心接口被调用的状况,以及单一接口所需花费的平均时间等资讯。
依照先前模板部署的话,dashboard 里面有依照服务接口切分好的类别
Client RTT 可以用来观察平均执行时间
Metric Name | Description |
---|---|
Client Request Rate | Average gRPC client side request per second by Open Match API methods |
Server Request Rate | Average gRPC server side request per second by Open Match API methods |
gRPC Error Rate | Ratio of gRPC calls that returned an non-OK status code by Open Match methods |
Network IO per second | Total network I/O rate per second |
Bytes Sent per Call: openmatch.{Component}/{MethodName} | Average bytes sent per call by quantile |
Bytes Received per Call: openmatch.{Component}/{MethodName} | Average bytes received per call by quantile |
Client RTT: openmatch.{Component}/{MethodName} | Average roundtrip latency by quantile |
Redis 监控面板里面包含了,常见的记忆体使用量、key 的数量、存取频率、连线数等等
Metric Name | Description |
---|---|
Uptime | Redis uptime |
Memory Usage | Redis memory usage in percentage |
Total DB Items | Total Redis DB keys in Redis master |
CPU Usage Percentage of Limit | Current CPU usage to CPU resource limit ratio per pod (%) |
Total Memory Usage | Current and maximum Redis memory usage by Redis instances |
Hits / Misses per Sec | Cache hits/misses per second by Redis instances |
Commands Executed / sec | Executed Redis commands per second by Redis instances (excludes Redis sync calls) |
Network I/O | Total network I/O per second by Redis instances |
由於 Open-Match 核心是由 golang 所编程,我们自然的会想要知道核心的记忆体使用量、GC的状况、golang 独有的并发方式 goroutines 数、以及 cpu 的使用率等等
Metric Name | Description |
---|---|
CPU Usage Limit Percentage | Current CPU usage to CPU resource limit ratio per pod (%) |
Go Routines | Average number of Go routines by deployment |
Process Memory | Average number of resident/virtual memory by deployment |
Process Memory Derivative | Derivative of the average number of resident/virtual memory by deployment |
Go Memstats | Average number of bytes allocated/allocation rate/stack inuse/heap inuse by deployment |
Go Memstats Derivative | Derivative of the average number of bytes allocated/allocation rate/stack inuse/heap inuse by deployment |
Open File Descriptors | Average number of currently opened file descriptors by deployment |
Open File Descriptors Derivative | Derivative of the average number of currently opened file descriptors by deployment |
GC Duration Quantiles | Average number of garbage collection time by deployment and quantile |
<<: JavaScript Day 16. 回圈(for、while、do while、break、continue)
请顾问辅导撰写 ISMS 程序书 充份说明企业或机构需求与资安目标(SPEC开好、说清楚、讲明白) ...
居然来到最後一天 真的很感谢有人关注 我想再给我一个月的时间 我就可以把内文补好 因为材料都已经备好...
今天要先来看Native Camp的流程,首先是点击注册後的页面, 有信箱和密码,还有SSO的选项,...
上一篇文章我简介了 ComputerCraft: Tweaked 麦块模组 今天我要来将里头的电脑开...
...