Commit d76cc734 authored by Zhangyi Chen's avatar Zhangyi Chen

Translate status.md

parent c0124ec9
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
- **non_service_error**: "non"修饰的是“service_error",后者即是分列在各个服务下的error,此外的error都计入non_service_error。服务处理过程中client断开连接导致无法成功写回response就算non_service_error。而服务内部对后端的连接断开属于服务内部逻辑,只要最终服务成功地返回了response,即使错误也是计入该服务的error,而不是non_service_error。 - **non_service_error**: "non"修饰的是“service_error",后者即是分列在各个服务下的error,此外的error都计入non_service_error。服务处理过程中client断开连接导致无法成功写回response就算non_service_error。而服务内部对后端的连接断开属于服务内部逻辑,只要最终服务成功地返回了response,即使错误也是计入该服务的error,而不是non_service_error。
- **connection_count**: 向该server发起请求的连接个数,不包含[对外连接](http://brpc.baidu.com:8765/vars/rpc_channel_connection_count)的个数。 - **connection_count**: 向该server发起请求的连接个数,不包含[对外连接](http://brpc.baidu.com:8765/vars/rpc_channel_connection_count)的个数。
- **example.EchoService**: 服务的完整名称,包含名字空间。 - **example.EchoService**: 服务的完整名称,包含名字空间。
- **Echo (EchoRequest****) returns (EchoResponse****)**: 方法签名,一个服务可包含多个方法,点击request/response上的链接可查看对应的protobuf结构体。 - **Echo (EchoRequest) returns (EchoResponse)**: 方法签名,一个服务可包含多个方法,点击request/response上的链接可查看对应的protobuf结构体。
- **count**: 成功处理的请求总个数。 - **count**: 成功处理的请求总个数。
- **error**: 失败的请求总个数。 - **error**: 失败的请求总个数。
- **latency**: 在web界面下从右到左分别是过去60秒,60分钟,24小时,30天的平均延时。在文本界面下是10秒内([-bvar_dump_interval](http://brpc.baidu.com:8765/flags/bvar_dump_interval)控制)的平均延时。 - **latency**: 在web界面下从右到左分别是过去60秒,60分钟,24小时,30天的平均延时。在文本界面下是10秒内([-bvar_dump_interval](http://brpc.baidu.com:8765/flags/bvar_dump_interval)控制)的平均延时。
......
[/status](http://brpc.baidu.com:8765/status) shows primary statistics of services. They shares the same sources with [/vars](../cn/vars.md) , except that they are grouped by services.
![img](../images/status.png)
Meaning of the fields above:
- **non_service_error**: the count of errors except the ones raised by the services. For example, it is a *non_service_error* that the client closes connection when the service is processing requests since no response could be written back, while it counts in the *service error* when the connection established internally in the service is broken and the service fails to get reponse from the remote side.
- **connection_count**: The number of connections to the server, excluded the ones connected to remote.
- **example.EchoService**: Full name of the service, including the package name。
- **Echo (EchoRequest) returns (EchoResponse)**: Signature of the method, a services can have multiple methods, click request/response and you can check out the corresponding protobuf message.
- **count**: Number of requests that are succesfully processed.
- **error**: Number of requests that meet failure.
- **latency**: On the web page it shows average latency in the recent *60s/60m/24h/30d* from *right to left*. On plain text page it is the average latency in recent 10s(by default, specified by [-bvar_dump_interval](http://brpc.baidu.com:8765/flags/bvar_dump_interval).
- **latency_percentiles**: The percentail of latency at 50%, 90%, 99%, 99.9% in 10 seconds(specified by[-bvar_dump_interval](http://brpc.baidu.com:8765/flags/bvar_dump_interval)),it shows adtional historical values on the web page.
- **latency_cdf**: Anther view of percentiles like histogram,only available on web page.
- **max_latency**: On the web page it shows the max latency in the recent *60s/60m/24h/30d* from *right to left*. On plain text page it is the max latency in recent 10s(by default, specified by [-bvar_dump_interval](http://brpc.baidu.com:8765/flags/bvar_dump_interval).
- **qps**: On the web page it shows the qps in the recent *60s/60m/24h/30d* from *right to left*. On plain text page it is the qps in recent 10s(by default, specified by [-bvar_dump_interval](http://brpc.baidu.com:8765/flags/bvar_dump_interval).
- **processing**: The number of requests that is being processed by the service. If this is
You can extends your servcies with [brpc::Describable](https://github.com/brpc/brpc/blob/master/src/brpc/describable.h) to customize /status page.
```c++
class MyService : public XXXService, public brpc::Describable {
public:
...
void DescribeStatus(std::ostream& os, const brpc::DescribeOptions& options) const {
os << "my_status: blahblah";
}
};
```
An example:
![img](../images/status_2.png)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment