You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@servicecomb.apache.org by li...@apache.org on 2019/04/16 10:11:51 UTC

[servicecomb-docs] branch master updated: update 1.2.0 metrics

This is an automated email from the ASF dual-hosted git repository.

liubao pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/servicecomb-docs.git


The following commit(s) were added to refs/heads/master by this push:
     new ab4d60d  update 1.2.0 metrics
ab4d60d is described below

commit ab4d60da0cb145b98c1d2697d7fa4d817c640121
Author: wujimin <wu...@huawei.com>
AuthorDate: Thu Apr 11 12:52:35 2019 +0800

    update 1.2.0 metrics
---
 .../en_US/general-development/metrics.md           | 720 +++++++++++++++++---
 java-chassis-reference/en_US/styles/website.css    |   5 +
 .../zh_CN/general-development/metrics.md           | 724 ++++++++++++++++++---
 java-chassis-reference/zh_CN/styles/website.css    |   5 +
 4 files changed, 1287 insertions(+), 167 deletions(-)

diff --git a/java-chassis-reference/en_US/general-development/metrics.md b/java-chassis-reference/en_US/general-development/metrics.md
index b9e3883..65339f0 100755
--- a/java-chassis-reference/en_US/general-development/metrics.md
+++ b/java-chassis-reference/en_US/general-development/metrics.md
@@ -11,164 +11,724 @@
   4. Metrics-prometheus provides the ability to interface with prometheus
 
 # Second, the summary of statistical items
-<table border="1" style="font-size: 8px">
+### 1. CPU
+<table class="metrics-table">
   <tr>
     <th>Name</th>
     <th>Tag keys</th>
     <th>Tag values</th>
-    <th style="min-width: 450px">meaning</th>
+    <th>Description</th>
+  </tr>
+  <tr>
+    <td rowspan="2">os</td>
+    <td rowspan="2">type</td>
+    <td>cpu</td>
+    <td>System CPU usage in the current period, Solaris mode</td>
+  </tr>
+  <tr>
+    <td>processCpu</td>
+    <td>Microservice process CPU usage in the current period, IRIX mode<br>
+        processCpu divided by cpu is equal to the number of system CPUs</td>
+  </tr>
+</table>
+
+### 2. NET
+<table class="metrics-table">
+  <tr>
+    <th>Name</th>
+    <th>Tag keys</th>
+    <th>Tag values</th>
+    <th>Description</th>
+  </tr>
+  <tr>
+    <td rowspan="6">os</td>
+    <td>type</td>
+    <td>net</td>
+    <td></td>
+  </tr>
+  <tr>
+    <td rowspan="4">statistic</td>
+    <td>send</td>
+    <td>Average number of bytes sent per second during the current period (Bps)</td>
+  </tr>
+  <tr>
+    <td>receive</td>
+    <td>Average number of bytes received per second during the current period (Bps)</td>
+  </tr>
+  <tr>
+    <td>sendPackets</td>
+    <td>Average number of packets sent per second (pps) during the current period</td>
+  </tr>
+  <tr>
+    <td>receivePackets</td>
+    <td>Average number of packets received per second (pps) during the current period</td>
+  </tr>
+  <tr>
+    <td>interface</td>
+    <td></td>
+    <td>net dev name</td>
+  </tr>
+</table>
+
+### 3. vertx client endpoints  
+<table class="metrics-table">
+  <tr>
+    <th>Name</th>
+    <th>Tag keys</th>
+    <th>Tag values</th>
+    <th>Description</th>
+  </tr>
+  <tr>
+    <td rowspan="8">servicecomb.vertx.endpoints</td>
+    <td>type</td>
+    <td>client</td>
+    <td></td>
+  </tr>
+  <tr>
+    <td>address</td>
+    <td>${ip}:${port}</td>
+    <td>server ip:port</td>
+  </tr>
+  <tr>
+    <td rowspan="6">statistic</td>
+    <td>connectCount</td>
+    <td>Number of connections have been initiated in the current period</td>
+  </tr>
+  <tr>
+    <td>disconnectCount</td>
+    <td>Number of disconnections in the current period</td>
+  </tr>
+  <tr>
+    <td>queueCount</td>
+    <td>The number of requests in the http connection pool that are waiting to get a connection</td>
+  </tr>
+  <tr>
+    <td>connections</td>
+    <td>Current connection number</td>
+  </tr>
+  <tr>
+    <td>bytesRead</td>
+    <td>Average number of bytes sent per second during the current period (Bps)<br>
+        Business layer statistics, relative to the data obtained from the network card, the data here does not include the size of the header<br>
+        For http messages, does not include http header size</td>
+  </tr>
+  <tr>
+    <td>bytesWritten</td>
+    <td>Average number of bytes received per second during the current period (Bps)<br>
+        Business layer statistics, relative to the data obtained from the network card, the data here does not include the size of the header<br>
+        For http messages, does not include http header size</td>
+  </tr>
+</table>
+
+### 4. vertx server endpoints  
+<table class="metrics-table">
+  <tr>
+    <th>Name</th>
+    <th>Tag keys</th>
+    <th>Tag values</th>
+    <th>Description</th>
+  </tr>
+  <tr>
+    <td rowspan="8">servicecomb.vertx.endpoints</td>
+    <td>type</td>
+    <td>server</td>
+    <td></td>
+  </tr>
+  <tr>
+    <td>address</td>
+    <td>${ip}:${port}</td>
+    <td>listen ip:port</td>
+  </tr>
+  <tr>
+    <td rowspan="6">statistic</td>
+    <td>connectCount</td>
+    <td>Number of connections are connected in the current period</td>
+  </tr>
+  <tr>
+    <td>disconnectCount</td>
+    <td>Number of disconnections in the current period</td>
+  </tr>
+  <tr>
+    <td>rejectByConnectionLimit</td>
+    <td>Number of active disconnections due to exceeding the number of connections in the current period</td>
+  </tr>
+  <tr>
+    <td>connections</td>
+    <td>Current connection number</td>
+  </tr>
+  <tr>
+    <td>bytesRead</td>
+    <td>Average number of bytes sent per second during the current period (Bps)<br>
+        Business layer statistics, relative to the data obtained from the network card, the data here does not include the size of the header<br>
+        For http messages, does not include http header size</td>
+  </tr>
+  <tr>
+    <td>bytesWritten</td>
+    <td>Average number of bytes received per second during the current period (Bps)<br>
+        Business layer statistics, relative to the data obtained from the network card, the data here does not include the size of the header<br>
+        For http messages, does not include http header size</td>
+  </tr>
+</table>
+
+### 5. Invocation latency distribution
+<table class="metrics-table">
+  <tr>
+    <th>Name</th>
+    <th>Tag keys</th>
+    <th>Tag values</th>
+    <th>Description</th>
   </tr>
   <tr>
     <td rowspan="11">servicecomb.invocation</td>
     <td>role</td>
-    <td>CONSUMER、PRODUCER</td>
-    <td>Is the CONSUMER or the statistics of the PRODUCER side?</td>
+    <td>CONSUMER、PRODUCER、EDGE</td>
+    <td>Is the CONSUMER, PRODUCER or EDGE side statistics</td>
   </tr>
   <tr>
     <td>operation</td>
     <td>${microserviceName}.${schemaId}.${operationName}</td>
-    <td>Method name</td>
+    <td>Method name called</td>
   </tr>
   <tr>
     <td>transport</td>
     <td>highway or rest</td>
-    <td>On which transmission channel the call occurs</td>
+    <td>On which transmission channel the call is made</td>
   </tr>
   <tr>
-    <td rowspan="3">stage</td>
+    <td>status</td>
+    <td>http status code<td>
+    <td></td>
+  </tr>
+  <tr>
+    <td>type</td>
+    <td>latencyDistribution</td>
+    <td>invocation latency distribution</td>
+  </tr>
+  <tr>
+    <td>scope</td>
+    <td>[${min}, ${max})</td>
+    <td>The call count in the current period that latency is greater than or equal to min, less than max<br>
+        [${min},) means max is infinite</td>
+  </tr>
+</table>
+
+### 6. invocation consumer stage latency 
+<table class="metrics-table">
+  <tr>
+    <th>Name</th>
+    <th>Tag keys</th>
+    <th>Tag values</th>
+    <th>Description</th>
+  </tr>
+  <tr>
+    <td rowspan="19">servicecomb.invocation</td>
+    <td>role</td>
+    <td>CONSUMER</td>
+    <td>Statistics on the CONSUMER side</td>
+  </tr>
+  <tr>
+    <td>operation</td>
+    <td>${microserviceName}.${schemaId}.${operationName}</td>
+    <td>Method name called</td>
+  </tr>
+  <tr>
+    <td>transport</td>
+    <td>highway or rest</td>
+    <td>On which transmission channel the call is made</td>
+  </tr>
+  <tr>
+    <td>status</td>
+    <td>http status code<td>
+    <td></td>
+  </tr>
+  <tr>
+    <td>type</td>
+    <td>stage</td>
+    <td>stage latency</td>
+  </tr>
+  <tr>
+    <td rowspan="11">stage</td>
     <td>total</td>
-    <td>Full process statistics</td>
+    <td>The whole process</td>
+  </tr>
+  <tr>
+    <td>prepare</td>
+    <td></td>
+  </tr>
+  <tr>
+    <td>handlers_request</td>
+    <td>Handler chain request process</td>
+  </tr>
+  <tr>
+    <td>client_filters_request</td>
+    <td>Http client filter chain request process<br>
+        Only the rest transport has this stage.</td>
+  </tr>
+  <tr>
+    <td>consumer_send_request</td>
+    <td>Send request stage, including consumer_get_connection and consumer_write_to_buf</td>
+  </tr>
+  <tr>
+    <td>consumer_get_connection</td>
+    <td>Get a connection from the connection pool</td>
+  </tr>
+  <tr>
+    <td>consumer_write_to_buf</td>
+    <td>Write data to the network buffer</td>
+  </tr>
+  <tr>
+    <td>consumer_wait_response</td>
+    <td>Waiting for the server to answer</td>
+  </tr>
+  <tr>
+    <td>consumer_wake_consumer</td>
+    <td>In the synchronization process, after receiving the response, it takes time from waking up the waiting thread to waiting for the thread to start processing the response.</td>
+  </tr>
+  <tr>
+    <td>client_filters_response</td>
+    <td>Http client filter chain response process</td>
+  </tr>
+  <tr>
+    <td>handlers_response</td>
+    <td>Handler chain response process</td>
+  </tr>
+  <tr>
+    <td rowspan="3">statistic</td>
+    <td>count</td>
+    <td>Average number of calls per second (TPS)<br>
+        Count=Number of calls/period in the statistical period (seconds)</td>
+  </tr>
+  <tr>
+    <td>totalTime</td>
+    <td>In seconds<br>
+        totalTime=The total duration of the call in the current period (seconds)<br>
+        AverageTime divided by count to get the average latency</td>
+  </tr>
+  <tr>
+    <td>max</td>
+    <td>In seconds<br>
+        Maximum latency in the current period</td>
+  </tr>
+</table>
+
+### 7. invocation producer stage时延 
+<table class="metrics-table">
+  <tr>
+    <th>Name</th>
+    <th>Tag keys</th>
+    <th>Tag values</th>
+    <th>Description</th>
+  </tr>
+  <tr>
+    <td rowspan="17">servicecomb.invocation</td>
+    <td>role</td>
+    <td>PRODUCER</td>
+    <td>Statistics on the PRODUCER side</td>
+  </tr>
+  <tr>
+    <td>operation</td>
+    <td>${microserviceName}.${schemaId}.${operationName}</td>
+    <td>Method name called</td>
+  </tr>
+  <tr>
+    <td>transport</td>
+    <td>highway or rest</td>
+    <td>On which transmission channel the call is made</td>
+  </tr>
+  <tr>
+    <td>status</td>
+    <td>http status code<td>
+    <td></td>
+  </tr>
+  <tr>
+    <td>type</td>
+    <td>stage</td>
+    <td>stage latency</td>
+  </tr>
+  <tr>
+    <td rowspan="9">stage</td>
+    <td>total</td>
+    <td>The whole process</td>
+  </tr>
+  <tr>
+    <td>prepare</td>
+    <td></td>
   </tr>
   <tr>
     <td>queue</td>
-    <td>It only makes sense to call the statistics queued in the producer thread pool when using the thread pool on the producer side.</td>
+    <td>Meaning only when using a thread pool<br>
+        Indicates the length of time the call is queued in the thread pool</td>
+  </tr>
+  <tr>
+    <td>server_filters_request</td>
+    <td>Http server filter chain request process<br>
+        Only the rest transport has this stage.</td>
+  </tr>
+  <tr>
+    <td>handlers_request</td>
+    <td>Handler chain request process</td>
   </tr>
   <tr>
     <td>execution</td>
-    <td>Statistically representing the execution of business logic only on the producer side</td>
+    <td>Business method</td>
+  </tr>
+  <tr>
+    <td>handlers_response</td>
+    <td>Handler chain response process</td>
+  </tr>
+  <tr>
+    <td>server_filters_response</td>
+    <td>Http server filter chain response process</td>
+  </tr>
+  <tr>
+    <td>producer_send_response</td>
+    <td>Send a response</td>
+  </tr>
+  <tr>
+    <td rowspan="3">statistic</td>
+    <td>count</td>
+    <td>Average number of calls per second (TPS)<br>
+        Count=Number of calls/period in the statistical period (seconds)</td>
+  </tr>
+  <tr>
+    <td>totalTime</td>
+    <td>In seconds<br>
+        totalTime=The total duration of the call in the current period (seconds)<br>
+        AverageTime divided by count to get the average latency</td>
+  </tr>
+  <tr>
+    <td>max</td>
+    <td>In seconds<br>
+        Maximum latency in the current period</td>
+  </tr>
+</table>
+
+### 8. invocation edge stage latency 
+<table class="metrics-table">
+  <tr>
+    <th>Name</th>
+    <th>Tag keys</th>
+    <th>Tag values</th>
+    <th>Description</th>
+  </tr>
+  <tr>
+    <td rowspan="23">servicecomb.invocation</td>
+    <td>role</td>
+    <td>EDGE</td>
+    <td>EDGE statistics</td>
+  </tr>
+  <tr>
+    <td>operation</td>
+    <td>${microserviceName}.${schemaId}.${operationName}</td>
+    <td>Method name called</td>
+  </tr>
+  <tr>
+    <td>transport</td>
+    <td>highway or rest</td>
+    <td>On which transmission channel the call is made</td>
   </tr>
   <tr>
     <td>status</td>
-    <td>http status code</td>
+    <td>http status code<td>
     <td></td>
   </tr>
   <tr>
-    <td rowspan="4">statistic</td>
-    <td>count</td>
-    <td>Average number of calls per second, ie TPS<br>count=Number of calls/cycles in the statistical period (seconds)</td>
+    <td>type</td>
+    <td>stage</td>
+    <td>stage latency</td>
   </tr>
   <tr>
-    <td>totalAmount</td>
-    <td> in seconds<br>totalAmount=Total timeout/cycle (in seconds) for calls in the statistical period<br>totalAmount divided by count to get the average delay</td>
+    <td rowspan="15">stage</td>
+    <td>total</td>
+    <td>The whole process</td>
   </tr>
   <tr>
-    <td>totalOfSquares </td>
-    <td>totalOfSquares=sum of squares of each call in the statistical period/cycle (seconds)</td>
+    <td>prepare</td>
+    <td></td>
   </tr>
   <tr>
-    <td>max</td>
-    <td>The maximum call time in the statistical period, in seconds</td>
+    <td>queue</td>
+    <td>Meaning only when using a thread pool<br>
+        Indicates the length of time the call is queued in the thread pool</td>
   </tr>
   <tr>
-    <td>threadpool.taskCount</td>
-    <td rowspan="7">id</td>
-    <td rowspan="7">${threadPoolName}</td>
-    <td>Average number of tasks submitted per second during the statistical period<br>taskCount=(completed + queue + active)/period (seconds)</td>
+    <td>server_filters_request</td>
+    <td>Http server filter chain request process</td>
   </tr>
   <tr>
-    <td>threadpool.completedTaskCount </td>
-    <td>The average number of tasks completed per second during the statistical period<br>completedTaskCount=completed/cycle (seconds)</td>
+    <td>handlers_request</td>
+    <td>Handler chain request process</td>
   </tr>
   <tr>
-    <td>threadpool.currentThreadsBusy </td>
-    <td>The current number of active threads, ie the number of tasks currently being executed</td>
+    <td>client_filters_request</td>
+    <td>Http client filter chain request process</td>
+  </tr>
+  <tr>
+    <td>consumer_send_request</td>
+    <td>Send request stage, including consumer_get_connection and consumer_write_to_buf</td>
+  </tr>
+  <tr>
+    <td>consumer_get_connection</td>
+    <td>Get a connection from the connection pool</td>
+  </tr>
+  <tr>
+    <td>consumer_write_to_buf</td>
+    <td>Write data to the network buffer</td>
+  </tr>
+  <tr>
+    <td>consumer_wait_response</td>
+    <td>Waiting for the server to answer</td>
+  </tr>
+  <tr>
+    <td>consumer_wake_consumer</td>
+    <td>In the synchronization process, after receiving the response, it takes time from waking up the waiting thread to waiting for the thread to start processing the response.</td>
+  </tr>
+  <tr>
+    <td>client_filters_response</td>
+    <td>Http client filter chain response process</td>
+  </tr>
+  <tr>
+    <td>handlers_response</td>
+    <td>Handler chain response process</td>
+  </tr>
+  <tr>
+    <td>server_filters_response</td>
+    <td>Http server filter chain response process</td>
+  </tr>
+  <tr>
+    <td>producer_send_response</td>
+    <td>Send a response</td>
+  </tr>
+  <tr>
+    <td rowspan="3">statistic</td>
+    <td>count</td>
+    <td>Average number of calls per second (TPS)<br>
+        Count=Number of calls/period in the statistical period (seconds)</td>
+  </tr>
+  <tr>
+    <td>totalTime</td>
+    <td>In seconds<br>
+        totalTime=The total duration of the call in the current period (seconds)<br>
+        AverageTime divided by count to get the average latency</td>
+  </tr>
+  <tr>
+    <td>max</td>
+    <td>In seconds<br>
+        Maximum latency in the current period</td>
+  </tr>
+</table>
+
+### 9. threadpool
+<table class="metrics-table">
+  <tr>
+    <th>Name</th>
+    <th>Tag keys</th>
+    <th>Tag values</th>
+    <th>Description</th>
+  </tr>
+  <tr>
+    <td>threadpool.corePoolSize  </td>
+    <td rowspan="8">id</td>
+    <td rowspan="8">${threadPoolName}</td>
+    <td>Minimum number of threads</td>
+  </tr>
   <tr>
     <td>threadpool.maxThreads </td>
     <td>Maximum number of threads allowed</td>
   </tr>
   <tr>
     <td>threadpool.poolSize </td>
-    <td>The current actual number of threads</td>
+    <td>Current actual number of threads</td>
   </tr>
   <tr>
-    <td>threadpool.corePoolSize  </td>
-    <td>Minimum number of threads</td>
+    <td>threadpool.currentThreadsBusy </td>
+    <td>The current number of active threads, which is the number of tasks currently being executed</td>
   </tr>
   <tr>
     <td>threadpool.queueSize </td>
     <td>Number of tasks currently queued</td>
   </tr>
+  <tr>
+    <td>threadpool.rejectedCount </td>
+    <td>The average number of tasks rejected per second during the current period</td>
+  </tr>
+  <tr>
+    <td>threadpool.taskCount</td>
+    <td>Average number of tasks submitted per second during the statistical period<br>
+        taskCount=(completed + queue + active)/period (seconds)</td>
+  </tr>
+  <tr>
+    <td>threadpool.completedTaskCount </td>
+    <td>The average number of tasks completed per second during the statistical period<br>
+        completedTaskCount=completed/period (seconds)</td>
+  </tr>
 </table>
 
 # Third, how to use.
 
-1.Maven dependence.
+### 1.Maven dependence.
 
 ```
 <dependency>
   <groupId>org.apache.servicecomb</groupId>
   <artifactId>metrics-core</artifactId>
-  <version>1.0.0-m2</version>
+  <version>1.2.0</version>
+</dependency>
+```
+If integrate with prometheus, also need to add dependencies.
+```
+<dependency>
+  <groupId>org.apache.servicecomb</groupId>
+  <artifactId>metrics-prometheus</artifactId>
+  <version>1.2.0</version>
 </dependency>
 ```
 
 _Note: Please change the version field to the actual version number; if the version number has been declared in the dependencyManagement, then you do not have to write the version number here_
 
-2. Configuration instructions
+### 2. Configuration instructions
 
 | Configuration Item | Default | Meaning |
 | :--- | :--- | :--- |
-| Servicecomb.metrics.window\_time | 60000 | Statistical period, in milliseconds TPS, delay, etc. Periodic data, updated once per cycle, the value obtained in the cycle, actually the value of the previous cycle |
+| `servicecomb.metrics.window_time` | 60000 | Statistical period, in milliseconds<br>TPS, delay, etc. Periodic data, updated once per cycle, the value obtained in the cycle, actually the value of the previous cycle |
+| servicecomb.metrics.latencyDistribution |       | The latency distribution time period definition in milliseconds<br>for example:0,1,10,100,1000<br>indicates that the following latency scopes are defined: [0, 1),[1, 10),[10, 100),[100, 1000),[1000, ) |
+| servicecomb.metrics.Consumer.invocation.slow.enabled | false | Whether to enable slow call detection on the Consumer side<br>Level 4 priority definitions can be supported by adding the suffix .${service}.${schema}.${operation} |
+| servicecomb.metrics.Consumer.invocation.slow.msTime | 1000 | If the latency exceeds the configured value, the log will be output immediately, and the time consumption information of the stage called this time will be recorded.<br>Level 4 priority definitions can be supported by adding the suffix .${service}.${schema}.${operation} |
+| servicecomb.metrics.Provider.invocation.slow.enabled | false | Whether to enable slow call detection on the Provider side<br>Level 4 priority definitions can be supported by adding the suffix .${service}.${schema}.${operation} |
+| servicecomb.metrics.Provider.invocation.slow.msTime | 1000 | If the latency exceeds the configured value, the log will be output immediately, and the time consumption information of the stage called this time will be recorded.<br>Level 4 priority definitions can be supported by adding the suffix .${service}.${schema}.${operation} |
+| servicecomb.metrics.prometheus.address | 0.0.0.0:9696 | prometheus listen address |
 | servicecomb.metrics.publisher.defaultLog.enabled | false | Whether to output the default statistics log |
+| servicecomb.metrics.publisher.defaultLog.endpoints.client.detail.enabled | false | Whether to output each client endpoint statistics log, because it is related to the target ip:port number, there may be a lot of data, so the default is not output|
 
-3. Access via RESTful
+### 3.慢调用检测
+  After slow call detection is enabled, if there is a slow call, the corresponding log will be output immediately:
+```
+2019-04-02 23:01:09,103[WARN][pool-7-thread-74][5ca37935c00ff2c7-350076] - slow(40 ms) invocation, CONSUMER highway perf1.impl.syncQuery
+  http method: GET
+  url        : /v1/syncQuery/{id}/
+  server     : highway://192.168.0.152:7070?login=true
+  status code: 200
+  total      : 50.760 ms
+    prepare                : 0.0 ms
+    handlers request       : 0.0 ms
+    client filters request : 0.0 ms
+    send request           : 0.5 ms
+    get connection         : 0.0 ms
+    write to buf           : 0.5 ms
+    wait response          : 50.727 ms
+    wake consumer          : 0.23 ms
+    client filters response: 0.2 ms
+    handlers response      : 0.0 ms (SlowInvocationLogger.java:121)
+```
+  Where 5ca37935c00ff2c7-350076 is the structure of ${traceId}-${invocationId}, referenced by %marker in the output format of log4j2 or logback
+  
+### 4. Access via RESTful
 As long as the microservices open the rest port, use a browser to access http://ip:port/metrics.
 will get json data in the following format:
 
 ```
 {
-"threadpool.taskCount(id=servicecomb.executor.groupThreadPool-group0)":7393.0,
-"threadpool.taskCount(id=servicecomb.executor.groupThreadPool-group1)":8997.0,
-"threadpool.currentThreadsBusy(id=servicecomb.executor.groupThreadPool-group0)":1.0,
-"threadpool.currentThreadsBusy(id=servicecomb.executor.groupThreadPool-group1)":0.0,
-"threadpool.poolSize(id=servicecomb.executor.groupThreadPool-group0)":8.0,
-"threadpool.poolSize(id=servicecomb.executor.groupThreadPool-group1)":8.0,
-"threadpool.completedTaskCount(id=servicecomb.executor.groupThreadPool-group0)":7393.0,
-"threadpool.completedTaskCount(id=servicecomb.executor.groupThreadPool-group1)":8997.0,
-"threadpool.maxThreads(id=servicecomb.executor.groupThreadPool-group0)":8.0,
-"threadpool.maxThreads(id=servicecomb.executor.groupThreadPool-group1)":8.0,
-"threadpool.queueSize(id=servicecomb.executor.groupThreadPool-group0)":0.0,
-"threadpool.queueSize(id=servicecomb.executor.groupThreadPool-group1)":0.0,
-"threadpool.corePoolSize(id=servicecomb.executor.groupThreadPool-group0)":8.0,
-"threadpool.corePoolSize(id=servicecomb.executor.groupThreadPool-group1)":8.0,
-"servicecomb.invocation(operation=perf1.impl.syncQuery,role=PRODUCER,stage=total,statistic=count,status=200,transport=rest)":11260.0,
-"servicecomb.invocation(operation=perf1.impl.syncQuery,role=PRODUCER,stage=total,statistic=totalTime,status=200,transport=rest)":0.38689718700000003,
-"servicecomb.invocation(operation=perf1.impl.syncQuery,role=PRODUCER,stage=total,statistic=totalOfSquares,status=200,transport=rest)":1.4702530122919001E-5,
-"servicecomb.invocation(operation=perf1.impl.syncQuery,role=PRODUCER,stage=total,statistic=max,status=200,transport=rest)":2.80428E-4,
-"servicecomb.invocation(operation=perf1.impl.syncQuery,role=PRODUCER,stage=execution,statistic=count,status=200,transport=rest)":11260.0,
-"servicecomb.invocation(operation=perf1.impl.syncQuery,role=PRODUCER,stage=execution,statistic=totalTime,status=200,transport=rest)":0.291562031,
-"servicecomb.invocation(operation=perf1.impl.syncQuery,role=PRODUCER,stage=execution,statistic=totalOfSquares,status=200,transport=rest)":8.357214743065001E-6,
-"servicecomb.invocation(operation=perf1.impl.syncQuery,role=PRODUCER,stage=execution,statistic=max,status=200,transport=rest)":2.20962E-4,
-"servicecomb.invocation(operation=perf1.metricsEndpoint.measure,role=PRODUCER,stage=execution,statistic=count,status=200,transport=rest)":4.0,
-"servicecomb.invocation(operation=perf1.metricsEndpoint.measure,role=PRODUCER,stage=execution,statistic=totalTime,status=200,transport=rest)":0.008880438000000001,
-"servicecomb.invocation(operation=perf1.metricsEndpoint.measure,role=PRODUCER,stage=execution,statistic=totalOfSquares,status=200,transport=rest)":2.0280434311212E-5,
-"servicecomb.invocation(operation=perf1.metricsEndpoint.measure,role=PRODUCER,stage=execution,statistic=max,status=200,transport=rest)":0.002701049,
-"servicecomb.invocation(operation=perf1.impl.syncQuery,role=CONSUMER,stage=total,statistic=count,status=200,transport=rest)":11260.0,
-"servicecomb.invocation(operation=perf1.impl.syncQuery,role=CONSUMER,stage=total,statistic=totalTime,status=200,transport=rest)":1.963073303,
-"servicecomb.invocation(operation=perf1.impl.syncQuery,role=CONSUMER,stage=total,statistic=totalOfSquares,status=200,transport=rest)":3.54540250685325E-4,
-"servicecomb.invocation(operation=perf1.impl.syncQuery,role=CONSUMER,stage=total,statistic=max,status=200,transport=rest)":0.001611332,
-"servicecomb.invocation(operation=perf1.metricsEndpoint.measure,role=PRODUCER,stage=queue,statistic=count,status=200,transport=rest)":4.0,
-"servicecomb.invocation(operation=perf1.metricsEndpoint.measure,role=PRODUCER,stage=queue,statistic=totalTime,status=200,transport=rest)":4.1958E-5,
-"servicecomb.invocation(operation=perf1.metricsEndpoint.measure,role=PRODUCER,stage=queue,statistic=totalOfSquares,status=200,transport=rest)":4.52399726E-10,
-"servicecomb.invocation(operation=perf1.metricsEndpoint.measure,role=PRODUCER,stage=queue,statistic=max,status=200,transport=rest)":1.2075E-5,
-"servicecomb.invocation(operation=perf1.metricsEndpoint.measure,role=PRODUCER,stage=total,statistic=count,status=200,transport=rest)":4.0,
-"servicecomb.invocation(operation=perf1.metricsEndpoint.measure,role=PRODUCER,stage=total,statistic=totalTime,status=200,transport=rest)":0.008922396,
-"servicecomb.invocation(operation=perf1.metricsEndpoint.measure,role=PRODUCER,stage=total,statistic=totalOfSquares,status=200,transport=rest)":2.0470212584674E-5,
-"servicecomb.invocation(operation=perf1.metricsEndpoint.measure,role=PRODUCER,stage=total,statistic=max,status=200,transport=rest)":0.002713123,
-"servicecomb.invocation(operation=perf1.impl.syncQuery,role=PRODUCER,stage=queue,statistic=count,status=200,transport=rest)":11260.0,
-"servicecomb.invocation(operation=perf1.impl.syncQuery,role=PRODUCER,stage=queue,statistic=totalTime,status=200,transport=rest)":0.095335156,
-"servicecomb.invocation(operation=perf1.impl.syncQuery,role=PRODUCER,stage=queue,statistic=totalOfSquares,status=200,transport=rest)":1.0722599763800001E-6,
-"servicecomb.invocation(operation=perf1.impl.syncQuery,role=PRODUCER,stage=queue,statistic=max,status=200,transport=rest)":2.0858600000000003E-4
+  "servicecomb.vertx.endpoints(address=192.168.0.124:7070,statistic=connectCount,type=client)": 0.0,
+  "servicecomb.vertx.endpoints(address=192.168.0.124:7070,statistic=disconnectCount,type=client)": 0.0,
+  "servicecomb.vertx.endpoints(address=192.168.0.124:7070,statistic=connections,type=client)": 1.0,
+  "servicecomb.vertx.endpoints(address=192.168.0.124:7070,statistic=bytesRead,type=client)": 508011.0,
+  "servicecomb.vertx.endpoints(address=192.168.0.124:7070,statistic=bytesWritten,type=client)": 542163.0,
+  "servicecomb.vertx.endpoints(address=192.168.0.124:7070,statistic=queueCount,type=client)": 0.0,
+
+  "servicecomb.vertx.endpoints(address=0.0.0.0:7070,statistic=connectCount,type=server)": 0.0,
+  "servicecomb.vertx.endpoints(address=0.0.0.0:7070,statistic=disconnectCount,type=server)": 0.0,
+  "servicecomb.vertx.endpoints(address=0.0.0.0:7070,statistic=connections,type=server)": 1.0,
+  "servicecomb.vertx.endpoints(address=0.0.0.0:7070,statistic=bytesRead,type=server)": 542163.0,
+  "servicecomb.vertx.endpoints(address=0.0.0.0:7070,statistic=bytesWritten,type=server)": 508011.0,
+  "servicecomb.vertx.endpoints(address=0.0.0.0:7070,statistic=rejectByConnectionLimit,type=server)": 0.0,
+  "servicecomb.vertx.endpoints(address=localhost:8080,statistic=connectCount,type=server)": 0.0,
+  "servicecomb.vertx.endpoints(address=localhost:8080,statistic=disconnectCount,type=server)": 0.0,
+  "servicecomb.vertx.endpoints(address=localhost:8080,statistic=connections,type=server)": 0.0,
+  "servicecomb.vertx.endpoints(address=localhost:8080,statistic=bytesRead,type=server)": 0.0,
+  "servicecomb.vertx.endpoints(address=localhost:8080,statistic=bytesWritten,type=server)": 0.0,
+  "servicecomb.vertx.endpoints(address=localhost:8080,statistic=rejectByConnectionLimit,type=server)": 0.0,
+
+  "threadpool.completedTaskCount(id=cse.executor.groupThreadPool-group0)": 4320.0,
+  "threadpool.rejectedCount(id=cse.executor.groupThreadPool-group0)": 0.0,
+  "threadpool.taskCount(id=cse.executor.groupThreadPool-group0)": 4320.0,
+  "threadpool.currentThreadsBusy(id=cse.executor.groupThreadPool-group0)": 0.0,
+  "threadpool.poolSize(id=cse.executor.groupThreadPool-group0)": 4.0,
+  "threadpool.maxThreads(id=cse.executor.groupThreadPool-group0)": 10.0,
+  "threadpool.queueSize(id=cse.executor.groupThreadPool-group0)": 0.0,
+  "threadpool.corePoolSize(id=cse.executor.groupThreadPool-group0)": 4.0,
+
+  "servicecomb.invocation(operation=perf1.impl.syncQuery,role=CONSUMER,scope=[0,1),status=200,transport=highway,type=latencyDistribution)": 4269.0,
+  "servicecomb.invocation(operation=perf1.impl.syncQuery,role=CONSUMER,scope=[1,3),status=200,transport=highway,type=latencyDistribution)": 0.0,
+  "servicecomb.invocation(operation=perf1.impl.syncQuery,role=CONSUMER,scope=[3,10),status=200,transport=highway,type=latencyDistribution)": 0.0,
+  "servicecomb.invocation(operation=perf1.impl.syncQuery,role=CONSUMER,scope=[10,100),status=200,transport=highway,type=latencyDistribution)": 0.0,
+  "servicecomb.invocation(operation=perf1.impl.syncQuery,role=CONSUMER,scope=[100,),status=200,transport=highway,type=latencyDistribution)": 0.0,
+
+  "servicecomb.invocation(operation=perf1.impl.syncQuery,role=PRODUCER,scope=[0,1),status=200,transport=highway,type=latencyDistribution)": 4269.0,
+  "servicecomb.invocation(operation=perf1.impl.syncQuery,role=PRODUCER,scope=[1,3),status=200,transport=highway,type=latencyDistribution)": 0.0,
+  "servicecomb.invocation(operation=perf1.impl.syncQuery,role=PRODUCER,scope=[3,10),status=200,transport=highway,type=latencyDistribution)": 0.0,
+  "servicecomb.invocation(operation=perf1.impl.syncQuery,role=PRODUCER,scope=[10,100),status=200,transport=highway,type=latencyDistribution)": 0.0,
+  "servicecomb.invocation(operation=perf1.impl.syncQuery,role=PRODUCER,scope=[100,),status=200,transport=highway,type=latencyDistribution)": 0.0,
+  
+  "servicecomb.invocation(operation=perf1.impl.syncQuery,role=PRODUCER,stage=total,statistic=count,status=200,transport=highway,type=stage)": 4269.0,
+  "servicecomb.invocation(operation=perf1.impl.syncQuery,role=PRODUCER,stage=total,statistic=totalTime,status=200,transport=highway,type=stage)": 0.25269420000000004,
+  "servicecomb.invocation(operation=perf1.impl.syncQuery,role=PRODUCER,stage=total,statistic=max,status=200,transport=highway,type=stage)": 2.7110000000000003E-4,
+  "servicecomb.invocation(operation=perf1.impl.syncQuery,role=PRODUCER,stage=handlers_request,statistic=count,status=200,transport=highway,type=stage)": 4269.0,
+  "servicecomb.invocation(operation=perf1.impl.syncQuery,role=PRODUCER,stage=handlers_request,statistic=totalTime,status=200,transport=highway,type=stage)": 0.0079627,
+  "servicecomb.invocation(operation=perf1.impl.syncQuery,role=PRODUCER,stage=handlers_request,statistic=max,status=200,transport=highway,type=stage)": 1.74E-5,
+  "servicecomb.invocation(operation=perf1.impl.syncQuery,role=PRODUCER,stage=handlers_response,statistic=count,status=200,transport=highway,type=stage)": 4269.0,
+  "servicecomb.invocation(operation=perf1.impl.syncQuery,role=PRODUCER,stage=handlers_response,statistic=totalTime,status=200,transport=highway,type=stage)": 0.0060666,
+  "servicecomb.invocation(operation=perf1.impl.syncQuery,role=PRODUCER,stage=handlers_response,statistic=max,status=200,transport=highway,type=stage)": 1.08E-5,
+  "servicecomb.invocation(operation=perf1.impl.syncQuery,role=PRODUCER,stage=prepare,statistic=count,status=200,transport=highway,type=stage)": 4269.0,
+  "servicecomb.invocation(operation=perf1.impl.syncQuery,role=PRODUCER,stage=prepare,statistic=totalTime,status=200,transport=highway,type=stage)": 0.016679600000000003,
+  "servicecomb.invocation(operation=perf1.impl.syncQuery,role=PRODUCER,stage=prepare,statistic=max,status=200,transport=highway,type=stage)": 2.68E-5,
+  "servicecomb.invocation(operation=perf1.impl.syncQuery,role=PRODUCER,stage=queue,statistic=count,status=200,transport=highway,type=stage)": 4269.0,
+  "servicecomb.invocation(operation=perf1.impl.syncQuery,role=PRODUCER,stage=queue,statistic=totalTime,status=200,transport=highway,type=stage)": 0.08155480000000001,
+  "servicecomb.invocation(operation=perf1.impl.syncQuery,role=PRODUCER,stage=queue,statistic=max,status=200,transport=highway,type=stage)": 2.1470000000000001E-4,
+  "servicecomb.invocation(operation=perf1.impl.syncQuery,role=PRODUCER,stage=execution,statistic=count,status=200,transport=highway,type=stage)": 4269.0,
+  "servicecomb.invocation(operation=perf1.impl.syncQuery,role=PRODUCER,stage=execution,statistic=totalTime,status=200,transport=highway,type=stage)": 0.0098285,
+  "servicecomb.invocation(operation=perf1.impl.syncQuery,role=PRODUCER,stage=execution,statistic=max,status=200,transport=highway,type=stage)": 4.3100000000000004E-5,
+  "servicecomb.invocation(operation=perf1.impl.syncQuery,role=PRODUCER,stage=server_filters_request,statistic=count,status=200,transport=highway,type=stage)": 4269.0,
+  "servicecomb.invocation(operation=perf1.impl.syncQuery,role=PRODUCER,stage=server_filters_request,statistic=totalTime,status=200,transport=highway,type=stage)": 0.0170669,
+  "servicecomb.invocation(operation=perf1.impl.syncQuery,role=PRODUCER,stage=server_filters_request,statistic=max,status=200,transport=highway,type=stage)": 3.6400000000000004E-5,
+  "servicecomb.invocation(operation=perf1.impl.syncQuery,role=PRODUCER,stage=server_filters_response,statistic=count,status=200,transport=highway,type=stage)": 4269.0,
+  "servicecomb.invocation(operation=perf1.impl.syncQuery,role=PRODUCER,stage=server_filters_response,statistic=totalTime,status=200,transport=highway,type=stage)": 0.0196985,
+  "servicecomb.invocation(operation=perf1.impl.syncQuery,role=PRODUCER,stage=server_filters_response,statistic=max,status=200,transport=highway,type=stage)": 4.8100000000000004E-5,
+  "servicecomb.invocation(operation=perf1.impl.syncQuery,role=PRODUCER,stage=producer_send_response,statistic=count,status=200,transport=highway,type=stage)": 4269.0,
+  "servicecomb.invocation(operation=perf1.impl.syncQuery,role=PRODUCER,stage=producer_send_response,statistic=totalTime,status=200,transport=highway,type=stage)": 0.0880885,
+  "servicecomb.invocation(operation=perf1.impl.syncQuery,role=PRODUCER,stage=producer_send_response,statistic=max,status=200,transport=highway,type=stage)": 1.049E-4,
+  "servicecomb.invocation(operation=perf1.impl.syncQuery,role=CONSUMER,stage=total,statistic=count,status=200,transport=highway,type=stage)": 4269.0,
+  "servicecomb.invocation(operation=perf1.impl.syncQuery,role=CONSUMER,stage=total,statistic=totalTime,status=200,transport=highway,type=stage)": 0.9796976000000001,
+  "servicecomb.invocation(operation=perf1.impl.syncQuery,role=CONSUMER,stage=total,statistic=max,status=200,transport=highway,type=stage)": 6.720000000000001E-4,
+  "servicecomb.invocation(operation=perf1.impl.syncQuery,role=CONSUMER,stage=handlers_request,statistic=count,status=200,transport=highway,type=stage)": 4269.0,
+  "servicecomb.invocation(operation=perf1.impl.syncQuery,role=CONSUMER,stage=handlers_request,statistic=totalTime,status=200,transport=highway,type=stage)": 0.012601500000000002,
+  "servicecomb.invocation(operation=perf1.impl.syncQuery,role=CONSUMER,stage=handlers_request,statistic=max,status=200,transport=highway,type=stage)": 3.5000000000000004E-5,
+  "servicecomb.invocation(operation=perf1.impl.syncQuery,role=CONSUMER,stage=handlers_response,statistic=count,status=200,transport=highway,type=stage)": 4269.0,
+  "servicecomb.invocation(operation=perf1.impl.syncQuery,role=CONSUMER,stage=handlers_response,statistic=totalTime,status=200,transport=highway,type=stage)": 0.0066785,
+  "servicecomb.invocation(operation=perf1.impl.syncQuery,role=CONSUMER,stage=handlers_response,statistic=max,status=200,transport=highway,type=stage)": 3.21E-5,
+  "servicecomb.invocation(operation=perf1.impl.syncQuery,role=CONSUMER,stage=prepare,statistic=count,status=200,transport=highway,type=stage)": 4269.0,
+  "servicecomb.invocation(operation=perf1.impl.syncQuery,role=CONSUMER,stage=prepare,statistic=totalTime,status=200,transport=highway,type=stage)": 0.010363800000000001,
+  "servicecomb.invocation(operation=perf1.impl.syncQuery,role=CONSUMER,stage=prepare,statistic=max,status=200,transport=highway,type=stage)": 2.85E-5,
+  "servicecomb.invocation(operation=perf1.impl.syncQuery,role=CONSUMER,stage=client_filters_request,statistic=count,status=200,transport=highway,type=stage)": 4269.0,
+  "servicecomb.invocation(operation=perf1.impl.syncQuery,role=CONSUMER,stage=client_filters_request,statistic=totalTime,status=200,transport=highway,type=stage)": 0.0060282,
+  "servicecomb.invocation(operation=perf1.impl.syncQuery,role=CONSUMER,stage=client_filters_request,statistic=max,status=200,transport=highway,type=stage)": 9.2E-6,
+  "servicecomb.invocation(operation=perf1.impl.syncQuery,role=CONSUMER,stage=consumer_send_request,statistic=count,status=200,transport=highway,type=stage)": 4269.0,
+  "servicecomb.invocation(operation=perf1.impl.syncQuery,role=CONSUMER,stage=consumer_send_request,statistic=totalTime,status=200,transport=highway,type=stage)": 0.099984,
+  "servicecomb.invocation(operation=perf1.impl.syncQuery,role=CONSUMER,stage=consumer_send_request,statistic=max,status=200,transport=highway,type=stage)": 1.1740000000000001E-4,
+  "servicecomb.invocation(operation=perf1.impl.syncQuery,role=CONSUMER,stage=consumer_get_connection,statistic=count,status=200,transport=highway,type=stage)": 4269.0,
+  "servicecomb.invocation(operation=perf1.impl.syncQuery,role=CONSUMER,stage=consumer_get_connection,statistic=totalTime,status=200,transport=highway,type=stage)": 0.006916800000000001,
+  "servicecomb.invocation(operation=perf1.impl.syncQuery,role=CONSUMER,stage=consumer_get_connection,statistic=max,status=200,transport=highway,type=stage)": 5.83E-5,
+  "servicecomb.invocation(operation=perf1.impl.syncQuery,role=CONSUMER,stage=consumer_write_to_buf,statistic=count,status=200,transport=highway,type=stage)": 4269.0,
+  "servicecomb.invocation(operation=perf1.impl.syncQuery,role=CONSUMER,stage=consumer_write_to_buf,statistic=totalTime,status=200,transport=highway,type=stage)": 0.0930672,
+  "servicecomb.invocation(operation=perf1.impl.syncQuery,role=CONSUMER,stage=consumer_write_to_buf,statistic=max,status=200,transport=highway,type=stage)": 1.1580000000000001E-4,
+  "servicecomb.invocation(operation=perf1.impl.syncQuery,role=CONSUMER,stage=consumer_wait_response,statistic=count,status=200,transport=highway,type=stage)": 4269.0,
+  "servicecomb.invocation(operation=perf1.impl.syncQuery,role=CONSUMER,stage=consumer_wait_response,statistic=totalTime,status=200,transport=highway,type=stage)": 0.7654931,
+  "servicecomb.invocation(operation=perf1.impl.syncQuery,role=CONSUMER,stage=consumer_wait_response,statistic=max,status=200,transport=highway,type=stage)": 5.547E-4,
+  "servicecomb.invocation(operation=perf1.impl.syncQuery,role=CONSUMER,stage=consumer_wake_consumer,statistic=count,status=200,transport=highway,type=stage)": 4269.0,
+  "servicecomb.invocation(operation=perf1.impl.syncQuery,role=CONSUMER,stage=consumer_wake_consumer,statistic=totalTime,status=200,transport=highway,type=stage)": 0.0502085,
+  "servicecomb.invocation(operation=perf1.impl.syncQuery,role=CONSUMER,stage=consumer_wake_consumer,statistic=max,status=200,transport=highway,type=stage)": 3.7370000000000003E-4,
+  "servicecomb.invocation(operation=perf1.impl.syncQuery,role=CONSUMER,stage=client_filters_response,statistic=count,status=200,transport=highway,type=stage)": 4269.0,
+  "servicecomb.invocation(operation=perf1.impl.syncQuery,role=CONSUMER,stage=client_filters_response,statistic=totalTime,status=200,transport=highway,type=stage)": 0.0227188,
+  "servicecomb.invocation(operation=perf1.impl.syncQuery,role=CONSUMER,stage=client_filters_response,statistic=max,status=200,transport=highway,type=stage)": 4.0E-5
 }
 ```
 
@@ -179,9 +739,9 @@ Because ServiceComb has initialized the registry's registry, the business no lon
 
 Implement the MetricsInitializer interface, define the business-level Meters, or implement a custom Publisher, and then declare your implementation through the SPI mechanism.
 
-1.Meters:
+### 1.Meters:
 Creating Meters capabilities is provided by spectator, available in the [netflix spectator] (https://github.com/Netflix/spectator) documentation
 
-2.Publisher:
+### 2.Publisher:
 Periodically output scenarios, such as log scenarios, subscribe to org.apache.servicecomb.foundation.metrics.PolledEvent via eventBus, PolledEvent.getMeters() is the statistical result of this cycle.
 Non-periodic output scenarios, such as access through the RESTful interface, the statistical results of this cycle can be obtained through globalRegistry.iterator()
diff --git a/java-chassis-reference/en_US/styles/website.css b/java-chassis-reference/en_US/styles/website.css
index 7c82f29..6d18bc3 100644
--- a/java-chassis-reference/en_US/styles/website.css
+++ b/java-chassis-reference/en_US/styles/website.css
@@ -6,4 +6,9 @@ table {
     table-layout: fixed;
     display:block;
     overflow-x: auto;
+}
+
+.metrics-table {
+    border-width: 1px;
+    font-size: 8px;
 }
\ No newline at end of file
diff --git a/java-chassis-reference/zh_CN/general-development/metrics.md b/java-chassis-reference/zh_CN/general-development/metrics.md
index 5efab37..9bb675d 100644
--- a/java-chassis-reference/zh_CN/general-development/metrics.md
+++ b/java-chassis-reference/zh_CN/general-development/metrics.md
@@ -11,18 +11,319 @@
 4. Metrics-prometheus提供与prometheus对接的能力
 
 # 二、统计项汇总
-<table border="1" style="font-size: 8px">
+### 1. CPU
+<table class="metrics-table">
   <tr>
     <th>Name</th>
     <th>Tag keys</th>
     <th>Tag values</th>
-    <th style="min-width: 450px">含义</th>
+    <th>含义</th>
+  </tr>
+  <tr>
+    <td rowspan="2">os</td>
+    <td rowspan="2">type</td>
+    <td>cpu</td>
+    <td>当前周期内系统CPU使用率,Solaris模式</td>
+  </tr>
+  <tr>
+    <td>processCpu</td>
+    <td>当前周期内微服务进程CPU使用率,IRIX模式<br>
+        processCpu除以cpu近似等于系统CPU数</td>
+  </tr>
+</table>
+
+### 2. NET
+<table class="metrics-table">
+  <tr>
+    <th>Name</th>
+    <th>Tag keys</th>
+    <th>Tag values</th>
+    <th>含义</th>
+  </tr>
+  <tr>
+    <td rowspan="6">os</td>
+    <td>type</td>
+    <td>net</td>
+    <td></td>
+  </tr>
+  <tr>
+    <td rowspan="4">statistic</td>
+    <td>send</td>
+    <td>当前周期内平均每秒发送的字节数(Bps)</td>
+  </tr>
+  <tr>
+    <td>receive</td>
+    <td>当前周期内平均每秒接收的字节数(Bps)</td>
+  </tr>
+  <tr>
+    <td>sendPackets</td>
+    <td>当前周期内平均每秒发送的包数(pps)</td>
+  </tr>
+  <tr>
+    <td>receivePackets</td>
+    <td>当前周期内平均每秒接收的包数(pps)</td>
+  </tr>
+  <tr>
+    <td>interface</td>
+    <td></td>
+    <td>网卡设备名</td>
+  </tr>
+</table>
+
+### 3. vertx client endpoints  
+<table class="metrics-table">
+  <tr>
+    <th>Name</th>
+    <th>Tag keys</th>
+    <th>Tag values</th>
+    <th>含义</th>
+  </tr>
+  <tr>
+    <td rowspan="8">servicecomb.vertx.endpoints</td>
+    <td>type</td>
+    <td>client</td>
+    <td></td>
+  </tr>
+  <tr>
+    <td>address</td>
+    <td>${ip}:${port}</td>
+    <td>服务端的ip:port</td>
+  </tr>
+  <tr>
+    <td rowspan="6">statistic</td>
+    <td>connectCount</td>
+    <td>当前周期内共发起多少次连接</td>
+  </tr>
+  <tr>
+    <td>disconnectCount</td>
+    <td>当前周期内断连的次数</td>
+  </tr>
+  <tr>
+    <td>queueCount</td>
+    <td>http连接池中正在等待获取连接的请求数</td>
+  </tr>
+  <tr>
+    <td>connections</td>
+    <td>当前时刻的连接数</td>
+  </tr>
+  <tr>
+    <td>bytesRead</td>
+    <td>当前周期内平均每秒发送的字节数(Bps)<br>
+        业务层的统计,相对从网卡获取的数据,这里的数据不包括包头的大小<br>
+        对于http消息,不包括http header大小</td>
+  </tr>
+  <tr>
+    <td>bytesWritten</td>
+    <td>当前周期内平均每秒接收的字节数(Bps)<br>
+        业务层的统计,相对从网卡获取的数据,这里的数据不包括包头的大小<br>
+        对于http消息,不包括http header大小</td>
+  </tr>
+</table>
+
+### 4. vertx server endpoints  
+<table class="metrics-table">
+  <tr>
+    <th>Name</th>
+    <th>Tag keys</th>
+    <th>Tag values</th>
+    <th>含义</th>
+  </tr>
+  <tr>
+    <td rowspan="8">servicecomb.vertx.endpoints</td>
+    <td>type</td>
+    <td>server</td>
+    <td></td>
+  </tr>
+  <tr>
+    <td>address</td>
+    <td>${ip}:${port}</td>
+    <td>监听的ip:port</td>
+  </tr>
+  <tr>
+    <td rowspan="6">statistic</td>
+    <td>connectCount</td>
+    <td>当前周期内共接入多少次连接</td>
+  </tr>
+  <tr>
+    <td>disconnectCount</td>
+    <td>当前周期内断连的次数</td>
+  </tr>
+  <tr>
+    <td>rejectByConnectionLimit</td>
+    <td>当前周期内因超出连接数限制而主动断连的次数</td>
+  </tr>
+  <tr>
+    <td>connections</td>
+    <td>当前时刻的连接数</td>
+  </tr>
+  <tr>
+    <td>bytesRead</td>
+    <td>当前周期内平均每秒发送的字节数(Bps)<br>
+        业务层的统计,相对从网卡获取的数据,这里的数据不包括包头的大小<br>
+        对于http消息,不包括http header大小</td>
+  </tr>
+  <tr>
+    <td>bytesWritten</td>
+    <td>当前周期内平均每秒接收的字节数(Bps)<br>
+        业务层的统计,相对从网卡获取的数据,这里的数据不包括包头的大小<br>
+        对于http消息,不包括http header大小</td>
+  </tr>
+</table>
+
+### 5. invocation 时延分布 
+<table class="metrics-table">
+  <tr>
+    <th>Name</th>
+    <th>Tag keys</th>
+    <th>Tag values</th>
+    <th>含义</th>
   </tr>
   <tr>
     <td rowspan="11">servicecomb.invocation</td>
     <td>role</td>
-    <td>CONSUMER、PRODUCER</td>
-    <td>是CONSUMER还是PRODUCER端的统计</td>
+    <td>CONSUMER、PRODUCER、EDGE</td>
+    <td>是CONSUMER、PRODUCER还是EDGE端的统计</td>
+  </tr>
+  <tr>
+    <td>operation</td>
+    <td>${microserviceName}.${schemaId}.${operationName}</td>
+    <td>调用的方法名</td>
+  </tr>
+  <tr>
+    <td>transport</td>
+    <td>highway或rest</td>
+    <td>调用是在哪个传输通道上发生的</td>
+  </tr>
+  <tr>
+    <td>status</td>
+    <td>http status code<td>
+    <td></td>
+  </tr>
+  <tr>
+    <td>type</td>
+    <td>latencyDistribution</td>
+    <td>调用时延分布</td>
+  </tr>
+  <tr>
+    <td>scope</td>
+    <td>[${min}, ${max})</td>
+    <td>当前周期内调用时延大于等于min,小于max的次数<br>
+        [${min},)表示max为无限大</td>
+  </tr>
+</table>
+
+### 6. invocation consumer stage时延 
+<table class="metrics-table">
+  <tr>
+    <th>Name</th>
+    <th>Tag keys</th>
+    <th>Tag values</th>
+    <th>含义</th>
+  </tr>
+  <tr>
+    <td rowspan="19">servicecomb.invocation</td>
+    <td>role</td>
+    <td>CONSUMER</td>
+    <td>CONSUMER端的统计</td>
+  </tr>
+  <tr>
+    <td>operation</td>
+    <td>${microserviceName}.${schemaId}.${operationName}</td>
+    <td>调用的方法名</td>
+  </tr>
+  <tr>
+    <td>transport</td>
+    <td>highway或rest</td>
+    <td>调用是在哪个传输通道上发生的</td>
+  </tr>
+  <tr>
+    <td>status</td>
+    <td>http status code<td>
+    <td></td>
+  </tr>
+  <tr>
+    <td>type</td>
+    <td>stage</td>
+    <td>stage时延</td>
+  </tr>
+  <tr>
+    <td rowspan="11">stage</td>
+    <td>total</td>
+    <td>全流程</td>
+  </tr>
+  <tr>
+    <td>prepare</td>
+    <td>初始化</td>
+  </tr>
+  <tr>
+    <td>handlers_request</td>
+    <td>handler链请求流程</td>
+  </tr>
+  <tr>
+    <td>client_filters_request</td>
+    <td>http client filter链请求流程<br>
+        只有走rest transport才有本阶段</td>
+  </tr>
+  <tr>
+    <td>consumer_send_request</td>
+    <td>发送请求阶段,包括consumer_get_connection和consumer_write_to_buf</td>
+  </tr>
+  <tr>
+    <td>consumer_get_connection</td>
+    <td>从连接池获取连接</td>
+  </tr>
+  <tr>
+    <td>consumer_write_to_buf</td>
+    <td>向网络缓冲区写数据</td>
+  </tr>
+  <tr>
+    <td>consumer_wait_response</td>
+    <td>等待服务端应答</td>
+  </tr>
+  <tr>
+    <td>consumer_wake_consumer</td>
+    <td>同步流程中,收到应答后,从唤醒等待线程,到等待线程开始处理应答的耗时</td>
+  </tr>
+  <tr>
+    <td>client_filters_response</td>
+    <td>http client filter链应答流程</td>
+  </tr>
+  <tr>
+    <td>handlers_response</td>
+    <td>handler链应答流程</td>
+  </tr>
+  <tr>
+    <td rowspan="3">statistic</td>
+    <td>count</td>
+    <td>平均每秒调用次数,即TPS<br>
+        count=统计周期内的调用次数/周期(秒)</td>
+  </tr>
+  <tr>
+    <td>totalTime</td>
+    <td>单位为秒<br>
+        totalTime=当前周期内的调用耗时总时长/周期(秒)<br>
+        totalTime除以count即可得到平均时延</td>
+  </tr>
+  <tr>
+    <td>max</td>
+    <td>单位为秒<br>
+        当前周期内最大耗时</td>
+  </tr>
+</table>
+
+### 7. invocation producer stage时延 
+<table class="metrics-table">
+  <tr>
+    <th>Name</th>
+    <th>Tag keys</th>
+    <th>Tag values</th>
+    <th>含义</th>
+  </tr>
+  <tr>
+    <td rowspan="17">servicecomb.invocation</td>
+    <td>role</td>
+    <td>PRODUCER</td>
+    <td>PRODUCER端的统计</td>
   </tr>
   <tr>
     <td>operation</td>
@@ -35,53 +336,201 @@
     <td>调用是在哪个传输通道上发生的</td>
   </tr>
   <tr>
-    <td rowspan="3">stage</td>
+    <td>status</td>
+    <td>http status code<td>
+    <td></td>
+  </tr>
+  <tr>
+    <td>type</td>
+    <td>stage</td>
+    <td>stage时延</td>
+  </tr>
+  <tr>
+    <td rowspan="9">stage</td>
     <td>total</td>
-    <td>全流程的统计</td>
+    <td>全流程</td>
+  </tr>
+  <tr>
+    <td>prepare</td>
+    <td>初始化</td>
   </tr>
   <tr>
     <td>queue</td>
-    <td>仅在producer端使用线程池时有意义表示调用在producer线程池中排队的统计</td>
+    <td>仅在使用线程池时有意义<br>
+        表示调用在线程池中排队的时长</td>
+  </tr>
+  <tr>
+    <td>server_filters_request</td>
+    <td>http server filter链请求流程<br>
+        只有走rest transport才有本阶段</td>
+  </tr>
+  <tr>
+    <td>handlers_request</td>
+    <td>handler链请求流程</td>
   </tr>
   <tr>
     <td>execution</td>
-    <td>仅在producer端有意义表示业务逻辑执行的统计</td>
+    <td>业务方法</td>
+  </tr>
+  <tr>
+    <td>handlers_response</td>
+    <td>handler链应答流程</td>
+  </tr>
+  <tr>
+    <td>server_filters_response</td>
+    <td>http server filter链应答流程</td>
+  </tr>
+  <tr>
+    <td>producer_send_response</td>
+    <td>发送应答</td>
+  </tr>
+  <tr>
+    <td rowspan="3">statistic</td>
+    <td>count</td>
+    <td>平均每秒调用次数,即TPS<br>
+        count=统计周期内的调用次数/周期(秒)</td>
+  </tr>
+  <tr>
+    <td>totalTime</td>
+    <td>单位为秒<br>
+        totalTime=当前周期内的调用耗时总时长/周期(秒)<br>
+        totalTime除以count即可得到平均时延</td>
+  </tr>
+  <tr>
+    <td>max</td>
+    <td>单位为秒<br>
+        当前周期内最大耗时</td>
+  </tr>
+</table>
+
+### 8. invocation edge stage时延 
+<table class="metrics-table">
+  <tr>
+    <th>Name</th>
+    <th>Tag keys</th>
+    <th>Tag values</th>
+    <th>含义</th>
+  </tr>
+  <tr>
+    <td rowspan="23">servicecomb.invocation</td>
+    <td>role</td>
+    <td>EDGE</td>
+    <td>EDGE的统计</td>
+  </tr>
+  <tr>
+    <td>operation</td>
+    <td>${microserviceName}.${schemaId}.${operationName}</td>
+    <td>调用的方法名</td>
+  </tr>
+  <tr>
+    <td>transport</td>
+    <td>highway或rest</td>
+    <td>调用是在哪个传输通道上发生的</td>
   </tr>
   <tr>
     <td>status</td>
-    <td>http status code</td>
+    <td>http status code<td>
     <td></td>
   </tr>
   <tr>
-    <td rowspan="4">statistic</td>
-    <td>count</td>
-    <td>平均每秒调用次数,即TPS<br>count=统计周期内的调用次数/周期(秒)</td>
+    <td>type</td>
+    <td>stage</td>
+    <td>stage时延</td>
   </tr>
   <tr>
-    <td>totalAmount</td>
-    <td>单位为秒<br>totalAmount=统计周期内的调用耗时总时长/周期(秒)<br>totalAmount除以count即可得到平均时延</td>
+    <td rowspan="15">stage</td>
+    <td>total</td>
+    <td>全流程</td>
   </tr>
   <tr>
-    <td>totalOfSquares </td>
-    <td>totalOfSquares=统计周期内的每一个调用耗时的平方之和/周期(秒)</td>
+    <td>prepare</td>
+    <td>初始化</td>
   </tr>
   <tr>
-    <td>max</td>
-    <td>统计周期内最大的调用耗时,单位为秒</td>
+    <td>queue</td>
+    <td>仅在使用线程池时有意义<br>
+        表示调用在线程池中排队的时长</td>
   </tr>
   <tr>
-    <td>threadpool.taskCount</td>
-    <td rowspan="7">id</td>
-    <td rowspan="7">${threadPoolName}</td>
-    <td>统计周期内平均每秒提交的任务数<br>taskCount=(completed + queue + active)/周期(秒)</td>
+    <td>server_filters_request</td>
+    <td>http server filter链请求流程</td>
   </tr>
   <tr>
-    <td>threadpool.completedTaskCount </td>
-    <td>统计周期内平均每秒完成的任务数<br>completedTaskCount=completed/周期(秒)</td>
+    <td>handlers_request</td>
+    <td>handler链请求流程</td>
   </tr>
   <tr>
-    <td>threadpool.currentThreadsBusy </td>
-    <td>当前的活动线程数,即当前正在执行的任务数</td>
+    <td>client_filters_request</td>
+    <td>http client filter链请求流程</td>
+  </tr>
+  <tr>
+    <td>consumer_send_request</td>
+    <td>发送请求阶段,包括consumer_get_connection和consumer_write_to_buf</td>
+  </tr>
+  <tr>
+    <td>consumer_get_connection</td>
+    <td>从连接池获取连接</td>
+  </tr>
+  <tr>
+    <td>consumer_write_to_buf</td>
+    <td>向网络缓冲区写数据</td>
+  </tr>
+  <tr>
+    <td>consumer_wait_response</td>
+    <td>等待服务端应答</td>
+  </tr>
+  <tr>
+    <td>consumer_wake_consumer</td>
+    <td>同步流程中,收到应答后,从唤醒等待线程,到等待线程开始处理应答的耗时</td>
+  </tr>
+  <tr>
+    <td>client_filters_response</td>
+    <td>http client filter链应答流程</td>
+  </tr>
+  <tr>
+    <td>handlers_response</td>
+    <td>handler链应答流程</td>
+  </tr>
+  <tr>
+    <td>server_filters_response</td>
+    <td>http server filter链应答流程</td>
+  </tr>
+  <tr>
+    <td>producer_send_response</td>
+    <td>发送应答</td>
+  </tr>
+  <tr>
+    <td rowspan="3">statistic</td>
+    <td>count</td>
+    <td>平均每秒调用次数,即TPS<br>
+        count=统计周期内的调用次数/周期(秒)</td>
+  </tr>
+  <tr>
+    <td>totalTime</td>
+    <td>单位为秒<br>
+        totalTime=当前周期内的调用耗时总时长/周期(秒)<br>
+        totalTime除以count即可得到平均时延</td>
+  </tr>
+  <tr>
+    <td>max</td>
+    <td>单位为秒<br>
+        当前周期内最大耗时</td>
+  </tr>
+</table>
+
+### 9. threadpool
+<table class="metrics-table">
+  <tr>
+    <th>Name</th>
+    <th>Tag keys</th>
+    <th>Tag values</th>
+    <th>含义</th>
+  </tr>
+  <tr>
+    <td>threadpool.corePoolSize  </td>
+    <td rowspan="8">id</td>
+    <td rowspan="8">${threadPoolName}</td>
+    <td>最小线程数</td>
   </tr>
   <tr>
     <td>threadpool.maxThreads </td>
@@ -92,102 +541,203 @@
     <td>当前实际线程数</td>
   </tr>
   <tr>
-    <td>threadpool.corePoolSize  </td>
-    <td>最小线程数</td>
+    <td>threadpool.currentThreadsBusy </td>
+    <td>当前的活动线程数,即当前正在执行的任务数</td>
   </tr>
   <tr>
     <td>threadpool.queueSize </td>
     <td>当前正在排队的任务数</td>
   </tr>
+  <tr>
+    <td>threadpool.rejectedCount </td>
+    <td>当前周期内平均每秒被拒绝的任务数</td>
+  </tr>
+  <tr>
+    <td>threadpool.taskCount</td>
+    <td>统计周期内平均每秒提交的任务数<br>taskCount=(completed + queue + active)/周期(秒)</td>
+  </tr>
+  <tr>
+    <td>threadpool.completedTaskCount </td>
+    <td>统计周期内平均每秒完成的任务数<br>completedTaskCount=completed/周期(秒)</td>
+  </tr>
 </table>
 
 # 三、使用方法
 
-1.Maven依赖
-
+### 1.Maven依赖
 ```
 <dependency>
   <groupId>org.apache.servicecomb</groupId>
   <artifactId>metrics-core</artifactId>
-  <version>1.0.0-m2</version>
+  <version>1.2.0</version>
+</dependency>
+```
+如果与prometheus集成,则还需要加入依赖
+```
+<dependency>
+  <groupId>org.apache.servicecomb</groupId>
+  <artifactId>metrics-prometheus</artifactId>
+  <version>1.2.0</version>
 </dependency>
 ```
 
-_注:请将version字段修改为实际版本号;如果版本号已经在dependencyManagement中声明,则这里不必写版本号_
+_注:请将version字段修改为实际版本号;如果版本号已经在dependencyManagement中声明,则这里不必写版本号_  
 
-2.配置说明
+### 2.配置说明
 
 | 配置项 | 默认值 | 含义 |
 | :--- | :--- | :--- |
-| Servicecomb.metrics.window\_time | 60000 | 统计周期,单位为毫秒TPS、时延等等周期性的数据,每周期更新一次,在周期内获取到的值,实际是上一周期的值 |
+| `Servicecomb.metrics.window_time`                | 60000 | 统计周期,单位为毫秒<br>TPS、时延等等周期性的数据,每周期更新一次,在周期内获取到的值,实际是上一周期的值 |
+| servicecomb.metrics.latencyDistribution          |       | 时延分布时间段定义,单位为毫秒<br>例如:0,1,10,100,1000<br>表示定义了下列时延段[0, 1),[1, 10),[10, 100),[100, 1000),[1000, ) |
+| servicecomb.metrics.Consumer.invocation.slow.enabled | false | 是否开启Consumer端的慢调用检测<br>通过增加后缀.${service}.${schema}.${operation},可以支持4级优先级定义 |
+| servicecomb.metrics.Consumer.invocation.slow.msTime | 1000 | 时延超过配置值,则会立即输出日志,记录本次调用的stage耗时信息<br>通过增加后缀.${service}.${schema}.${operation},可以支持4级优先级定义 |
+| servicecomb.metrics.Provider.invocation.slow.enabled | false | 是否开启Provide端的慢调用检测<br>通过增加后缀.${service}.${schema}.${operation},可以支持4级优先级定义 |
+| servicecomb.metrics.Provider.invocation.slow.msTime | 1000 | 时延超过配置值,则会立即输出日志,记录本次调用的stage耗时信息<br>通过增加后缀.${service}.${schema}.${operation},可以支持4级优先级定义 |
+| servicecomb.metrics.prometheus.address | 0.0.0.0:9696 | prometheus监听地址 |
 | servicecomb.metrics.publisher.defaultLog.enabled | false | 是否输出默认的统计日志 |
+| servicecomb.metrics.publisher.defaultLog.endpoints.client.detail.enabled | false | 是否输出每一条client endpoint统计日志,因为跟目标的ip:port数有关,可能会有很多数据,所以默认不输出 |
+
+### 3.慢调用检测
+  开启慢调用检测后,如果存在慢调用,则会立即输出相应日志:
+```
+2019-04-02 23:01:09,103[WARN][pool-7-thread-74][5ca37935c00ff2c7-350076] - slow(40 ms) invocation, CONSUMER highway perf1.impl.syncQuery
+  http method: GET
+  url        : /v1/syncQuery/{id}/
+  server     : highway://192.168.0.152:7070?login=true
+  status code: 200
+  total      : 50.760 ms
+    prepare                : 0.0 ms
+    handlers request       : 0.0 ms
+    client filters request : 0.0 ms
+    send request           : 0.5 ms
+    get connection         : 0.0 ms
+    write to buf           : 0.5 ms
+    wait response          : 50.727 ms
+    wake consumer          : 0.23 ms
+    client filters response: 0.2 ms
+    handlers response      : 0.0 ms (SlowInvocationLogger.java:121)
+```
+  其中5ca37935c00ff2c7-350076是${traceId}-${invocationId}的结构,在log4j2或logback的输出格式中通过%marker引用
 
-3.通过RESTful访问
+### 4.通过RESTful访问
 只要微服务开放了rest端口,则使用浏览器访问http://ip:port/metrics 即可,
-将会得到下面格式的json数据:
+将会得到类似下面格式的json数据:
 
 ```
 {
-"threadpool.taskCount(id=servicecomb.executor.groupThreadPool-group0)":7393.0,
-"threadpool.taskCount(id=servicecomb.executor.groupThreadPool-group1)":8997.0,
-"threadpool.currentThreadsBusy(id=servicecomb.executor.groupThreadPool-group0)":1.0,
-"threadpool.currentThreadsBusy(id=servicecomb.executor.groupThreadPool-group1)":0.0,
-"threadpool.poolSize(id=servicecomb.executor.groupThreadPool-group0)":8.0,
-"threadpool.poolSize(id=servicecomb.executor.groupThreadPool-group1)":8.0,
-"threadpool.completedTaskCount(id=servicecomb.executor.groupThreadPool-group0)":7393.0,
-"threadpool.completedTaskCount(id=servicecomb.executor.groupThreadPool-group1)":8997.0,
-"threadpool.maxThreads(id=servicecomb.executor.groupThreadPool-group0)":8.0,
-"threadpool.maxThreads(id=servicecomb.executor.groupThreadPool-group1)":8.0,
-"threadpool.queueSize(id=servicecomb.executor.groupThreadPool-group0)":0.0,
-"threadpool.queueSize(id=servicecomb.executor.groupThreadPool-group1)":0.0,
-"threadpool.corePoolSize(id=servicecomb.executor.groupThreadPool-group0)":8.0,
-"threadpool.corePoolSize(id=servicecomb.executor.groupThreadPool-group1)":8.0,
-"servicecomb.invocation(operation=perf1.impl.syncQuery,role=PRODUCER,stage=total,statistic=count,status=200,transport=rest)":11260.0,
-"servicecomb.invocation(operation=perf1.impl.syncQuery,role=PRODUCER,stage=total,statistic=totalTime,status=200,transport=rest)":0.38689718700000003,
-"servicecomb.invocation(operation=perf1.impl.syncQuery,role=PRODUCER,stage=total,statistic=totalOfSquares,status=200,transport=rest)":1.4702530122919001E-5,
-"servicecomb.invocation(operation=perf1.impl.syncQuery,role=PRODUCER,stage=total,statistic=max,status=200,transport=rest)":2.80428E-4,
-"servicecomb.invocation(operation=perf1.impl.syncQuery,role=PRODUCER,stage=execution,statistic=count,status=200,transport=rest)":11260.0,
-"servicecomb.invocation(operation=perf1.impl.syncQuery,role=PRODUCER,stage=execution,statistic=totalTime,status=200,transport=rest)":0.291562031,
-"servicecomb.invocation(operation=perf1.impl.syncQuery,role=PRODUCER,stage=execution,statistic=totalOfSquares,status=200,transport=rest)":8.357214743065001E-6,
-"servicecomb.invocation(operation=perf1.impl.syncQuery,role=PRODUCER,stage=execution,statistic=max,status=200,transport=rest)":2.20962E-4,
-"servicecomb.invocation(operation=perf1.metricsEndpoint.measure,role=PRODUCER,stage=execution,statistic=count,status=200,transport=rest)":4.0,
-"servicecomb.invocation(operation=perf1.metricsEndpoint.measure,role=PRODUCER,stage=execution,statistic=totalTime,status=200,transport=rest)":0.008880438000000001,
-"servicecomb.invocation(operation=perf1.metricsEndpoint.measure,role=PRODUCER,stage=execution,statistic=totalOfSquares,status=200,transport=rest)":2.0280434311212E-5,
-"servicecomb.invocation(operation=perf1.metricsEndpoint.measure,role=PRODUCER,stage=execution,statistic=max,status=200,transport=rest)":0.002701049,
-"servicecomb.invocation(operation=perf1.impl.syncQuery,role=CONSUMER,stage=total,statistic=count,status=200,transport=rest)":11260.0,
-"servicecomb.invocation(operation=perf1.impl.syncQuery,role=CONSUMER,stage=total,statistic=totalTime,status=200,transport=rest)":1.963073303,
-"servicecomb.invocation(operation=perf1.impl.syncQuery,role=CONSUMER,stage=total,statistic=totalOfSquares,status=200,transport=rest)":3.54540250685325E-4,
-"servicecomb.invocation(operation=perf1.impl.syncQuery,role=CONSUMER,stage=total,statistic=max,status=200,transport=rest)":0.001611332,
-"servicecomb.invocation(operation=perf1.metricsEndpoint.measure,role=PRODUCER,stage=queue,statistic=count,status=200,transport=rest)":4.0,
-"servicecomb.invocation(operation=perf1.metricsEndpoint.measure,role=PRODUCER,stage=queue,statistic=totalTime,status=200,transport=rest)":4.1958E-5,
-"servicecomb.invocation(operation=perf1.metricsEndpoint.measure,role=PRODUCER,stage=queue,statistic=totalOfSquares,status=200,transport=rest)":4.52399726E-10,
-"servicecomb.invocation(operation=perf1.metricsEndpoint.measure,role=PRODUCER,stage=queue,statistic=max,status=200,transport=rest)":1.2075E-5,
-"servicecomb.invocation(operation=perf1.metricsEndpoint.measure,role=PRODUCER,stage=total,statistic=count,status=200,transport=rest)":4.0,
-"servicecomb.invocation(operation=perf1.metricsEndpoint.measure,role=PRODUCER,stage=total,statistic=totalTime,status=200,transport=rest)":0.008922396,
-"servicecomb.invocation(operation=perf1.metricsEndpoint.measure,role=PRODUCER,stage=total,statistic=totalOfSquares,status=200,transport=rest)":2.0470212584674E-5,
-"servicecomb.invocation(operation=perf1.metricsEndpoint.measure,role=PRODUCER,stage=total,statistic=max,status=200,transport=rest)":0.002713123,
-"servicecomb.invocation(operation=perf1.impl.syncQuery,role=PRODUCER,stage=queue,statistic=count,status=200,transport=rest)":11260.0,
-"servicecomb.invocation(operation=perf1.impl.syncQuery,role=PRODUCER,stage=queue,statistic=totalTime,status=200,transport=rest)":0.095335156,
-"servicecomb.invocation(operation=perf1.impl.syncQuery,role=PRODUCER,stage=queue,statistic=totalOfSquares,status=200,transport=rest)":1.0722599763800001E-6,
-"servicecomb.invocation(operation=perf1.impl.syncQuery,role=PRODUCER,stage=queue,statistic=max,status=200,transport=rest)":2.0858600000000003E-4
+  "servicecomb.vertx.endpoints(address=192.168.0.124:7070,statistic=connectCount,type=client)": 0.0,
+  "servicecomb.vertx.endpoints(address=192.168.0.124:7070,statistic=disconnectCount,type=client)": 0.0,
+  "servicecomb.vertx.endpoints(address=192.168.0.124:7070,statistic=connections,type=client)": 1.0,
+  "servicecomb.vertx.endpoints(address=192.168.0.124:7070,statistic=bytesRead,type=client)": 508011.0,
+  "servicecomb.vertx.endpoints(address=192.168.0.124:7070,statistic=bytesWritten,type=client)": 542163.0,
+  "servicecomb.vertx.endpoints(address=192.168.0.124:7070,statistic=queueCount,type=client)": 0.0,
+
+  "servicecomb.vertx.endpoints(address=0.0.0.0:7070,statistic=connectCount,type=server)": 0.0,
+  "servicecomb.vertx.endpoints(address=0.0.0.0:7070,statistic=disconnectCount,type=server)": 0.0,
+  "servicecomb.vertx.endpoints(address=0.0.0.0:7070,statistic=connections,type=server)": 1.0,
+  "servicecomb.vertx.endpoints(address=0.0.0.0:7070,statistic=bytesRead,type=server)": 542163.0,
+  "servicecomb.vertx.endpoints(address=0.0.0.0:7070,statistic=bytesWritten,type=server)": 508011.0,
+  "servicecomb.vertx.endpoints(address=0.0.0.0:7070,statistic=rejectByConnectionLimit,type=server)": 0.0,
+  "servicecomb.vertx.endpoints(address=localhost:8080,statistic=connectCount,type=server)": 0.0,
+  "servicecomb.vertx.endpoints(address=localhost:8080,statistic=disconnectCount,type=server)": 0.0,
+  "servicecomb.vertx.endpoints(address=localhost:8080,statistic=connections,type=server)": 0.0,
+  "servicecomb.vertx.endpoints(address=localhost:8080,statistic=bytesRead,type=server)": 0.0,
+  "servicecomb.vertx.endpoints(address=localhost:8080,statistic=bytesWritten,type=server)": 0.0,
+  "servicecomb.vertx.endpoints(address=localhost:8080,statistic=rejectByConnectionLimit,type=server)": 0.0,
+
+  "threadpool.completedTaskCount(id=cse.executor.groupThreadPool-group0)": 4320.0,
+  "threadpool.rejectedCount(id=cse.executor.groupThreadPool-group0)": 0.0,
+  "threadpool.taskCount(id=cse.executor.groupThreadPool-group0)": 4320.0,
+  "threadpool.currentThreadsBusy(id=cse.executor.groupThreadPool-group0)": 0.0,
+  "threadpool.poolSize(id=cse.executor.groupThreadPool-group0)": 4.0,
+  "threadpool.maxThreads(id=cse.executor.groupThreadPool-group0)": 10.0,
+  "threadpool.queueSize(id=cse.executor.groupThreadPool-group0)": 0.0,
+  "threadpool.corePoolSize(id=cse.executor.groupThreadPool-group0)": 4.0,
+
+  "servicecomb.invocation(operation=perf1.impl.syncQuery,role=CONSUMER,scope=[0,1),status=200,transport=highway,type=latencyDistribution)": 4269.0,
+  "servicecomb.invocation(operation=perf1.impl.syncQuery,role=CONSUMER,scope=[1,3),status=200,transport=highway,type=latencyDistribution)": 0.0,
+  "servicecomb.invocation(operation=perf1.impl.syncQuery,role=CONSUMER,scope=[3,10),status=200,transport=highway,type=latencyDistribution)": 0.0,
+  "servicecomb.invocation(operation=perf1.impl.syncQuery,role=CONSUMER,scope=[10,100),status=200,transport=highway,type=latencyDistribution)": 0.0,
+  "servicecomb.invocation(operation=perf1.impl.syncQuery,role=CONSUMER,scope=[100,),status=200,transport=highway,type=latencyDistribution)": 0.0,
+
+  "servicecomb.invocation(operation=perf1.impl.syncQuery,role=PRODUCER,scope=[0,1),status=200,transport=highway,type=latencyDistribution)": 4269.0,
+  "servicecomb.invocation(operation=perf1.impl.syncQuery,role=PRODUCER,scope=[1,3),status=200,transport=highway,type=latencyDistribution)": 0.0,
+  "servicecomb.invocation(operation=perf1.impl.syncQuery,role=PRODUCER,scope=[3,10),status=200,transport=highway,type=latencyDistribution)": 0.0,
+  "servicecomb.invocation(operation=perf1.impl.syncQuery,role=PRODUCER,scope=[10,100),status=200,transport=highway,type=latencyDistribution)": 0.0,
+  "servicecomb.invocation(operation=perf1.impl.syncQuery,role=PRODUCER,scope=[100,),status=200,transport=highway,type=latencyDistribution)": 0.0,
+  
+  "servicecomb.invocation(operation=perf1.impl.syncQuery,role=PRODUCER,stage=total,statistic=count,status=200,transport=highway,type=stage)": 4269.0,
+  "servicecomb.invocation(operation=perf1.impl.syncQuery,role=PRODUCER,stage=total,statistic=totalTime,status=200,transport=highway,type=stage)": 0.25269420000000004,
+  "servicecomb.invocation(operation=perf1.impl.syncQuery,role=PRODUCER,stage=total,statistic=max,status=200,transport=highway,type=stage)": 2.7110000000000003E-4,
+  "servicecomb.invocation(operation=perf1.impl.syncQuery,role=PRODUCER,stage=handlers_request,statistic=count,status=200,transport=highway,type=stage)": 4269.0,
+  "servicecomb.invocation(operation=perf1.impl.syncQuery,role=PRODUCER,stage=handlers_request,statistic=totalTime,status=200,transport=highway,type=stage)": 0.0079627,
+  "servicecomb.invocation(operation=perf1.impl.syncQuery,role=PRODUCER,stage=handlers_request,statistic=max,status=200,transport=highway,type=stage)": 1.74E-5,
+  "servicecomb.invocation(operation=perf1.impl.syncQuery,role=PRODUCER,stage=handlers_response,statistic=count,status=200,transport=highway,type=stage)": 4269.0,
+  "servicecomb.invocation(operation=perf1.impl.syncQuery,role=PRODUCER,stage=handlers_response,statistic=totalTime,status=200,transport=highway,type=stage)": 0.0060666,
+  "servicecomb.invocation(operation=perf1.impl.syncQuery,role=PRODUCER,stage=handlers_response,statistic=max,status=200,transport=highway,type=stage)": 1.08E-5,
+  "servicecomb.invocation(operation=perf1.impl.syncQuery,role=PRODUCER,stage=prepare,statistic=count,status=200,transport=highway,type=stage)": 4269.0,
+  "servicecomb.invocation(operation=perf1.impl.syncQuery,role=PRODUCER,stage=prepare,statistic=totalTime,status=200,transport=highway,type=stage)": 0.016679600000000003,
+  "servicecomb.invocation(operation=perf1.impl.syncQuery,role=PRODUCER,stage=prepare,statistic=max,status=200,transport=highway,type=stage)": 2.68E-5,
+  "servicecomb.invocation(operation=perf1.impl.syncQuery,role=PRODUCER,stage=queue,statistic=count,status=200,transport=highway,type=stage)": 4269.0,
+  "servicecomb.invocation(operation=perf1.impl.syncQuery,role=PRODUCER,stage=queue,statistic=totalTime,status=200,transport=highway,type=stage)": 0.08155480000000001,
+  "servicecomb.invocation(operation=perf1.impl.syncQuery,role=PRODUCER,stage=queue,statistic=max,status=200,transport=highway,type=stage)": 2.1470000000000001E-4,
+  "servicecomb.invocation(operation=perf1.impl.syncQuery,role=PRODUCER,stage=execution,statistic=count,status=200,transport=highway,type=stage)": 4269.0,
+  "servicecomb.invocation(operation=perf1.impl.syncQuery,role=PRODUCER,stage=execution,statistic=totalTime,status=200,transport=highway,type=stage)": 0.0098285,
+  "servicecomb.invocation(operation=perf1.impl.syncQuery,role=PRODUCER,stage=execution,statistic=max,status=200,transport=highway,type=stage)": 4.3100000000000004E-5,
+  "servicecomb.invocation(operation=perf1.impl.syncQuery,role=PRODUCER,stage=server_filters_request,statistic=count,status=200,transport=highway,type=stage)": 4269.0,
+  "servicecomb.invocation(operation=perf1.impl.syncQuery,role=PRODUCER,stage=server_filters_request,statistic=totalTime,status=200,transport=highway,type=stage)": 0.0170669,
+  "servicecomb.invocation(operation=perf1.impl.syncQuery,role=PRODUCER,stage=server_filters_request,statistic=max,status=200,transport=highway,type=stage)": 3.6400000000000004E-5,
+  "servicecomb.invocation(operation=perf1.impl.syncQuery,role=PRODUCER,stage=server_filters_response,statistic=count,status=200,transport=highway,type=stage)": 4269.0,
+  "servicecomb.invocation(operation=perf1.impl.syncQuery,role=PRODUCER,stage=server_filters_response,statistic=totalTime,status=200,transport=highway,type=stage)": 0.0196985,
+  "servicecomb.invocation(operation=perf1.impl.syncQuery,role=PRODUCER,stage=server_filters_response,statistic=max,status=200,transport=highway,type=stage)": 4.8100000000000004E-5,
+  "servicecomb.invocation(operation=perf1.impl.syncQuery,role=PRODUCER,stage=producer_send_response,statistic=count,status=200,transport=highway,type=stage)": 4269.0,
+  "servicecomb.invocation(operation=perf1.impl.syncQuery,role=PRODUCER,stage=producer_send_response,statistic=totalTime,status=200,transport=highway,type=stage)": 0.0880885,
+  "servicecomb.invocation(operation=perf1.impl.syncQuery,role=PRODUCER,stage=producer_send_response,statistic=max,status=200,transport=highway,type=stage)": 1.049E-4,
+  "servicecomb.invocation(operation=perf1.impl.syncQuery,role=CONSUMER,stage=total,statistic=count,status=200,transport=highway,type=stage)": 4269.0,
+  "servicecomb.invocation(operation=perf1.impl.syncQuery,role=CONSUMER,stage=total,statistic=totalTime,status=200,transport=highway,type=stage)": 0.9796976000000001,
+  "servicecomb.invocation(operation=perf1.impl.syncQuery,role=CONSUMER,stage=total,statistic=max,status=200,transport=highway,type=stage)": 6.720000000000001E-4,
+  "servicecomb.invocation(operation=perf1.impl.syncQuery,role=CONSUMER,stage=handlers_request,statistic=count,status=200,transport=highway,type=stage)": 4269.0,
+  "servicecomb.invocation(operation=perf1.impl.syncQuery,role=CONSUMER,stage=handlers_request,statistic=totalTime,status=200,transport=highway,type=stage)": 0.012601500000000002,
+  "servicecomb.invocation(operation=perf1.impl.syncQuery,role=CONSUMER,stage=handlers_request,statistic=max,status=200,transport=highway,type=stage)": 3.5000000000000004E-5,
+  "servicecomb.invocation(operation=perf1.impl.syncQuery,role=CONSUMER,stage=handlers_response,statistic=count,status=200,transport=highway,type=stage)": 4269.0,
+  "servicecomb.invocation(operation=perf1.impl.syncQuery,role=CONSUMER,stage=handlers_response,statistic=totalTime,status=200,transport=highway,type=stage)": 0.0066785,
+  "servicecomb.invocation(operation=perf1.impl.syncQuery,role=CONSUMER,stage=handlers_response,statistic=max,status=200,transport=highway,type=stage)": 3.21E-5,
+  "servicecomb.invocation(operation=perf1.impl.syncQuery,role=CONSUMER,stage=prepare,statistic=count,status=200,transport=highway,type=stage)": 4269.0,
+  "servicecomb.invocation(operation=perf1.impl.syncQuery,role=CONSUMER,stage=prepare,statistic=totalTime,status=200,transport=highway,type=stage)": 0.010363800000000001,
+  "servicecomb.invocation(operation=perf1.impl.syncQuery,role=CONSUMER,stage=prepare,statistic=max,status=200,transport=highway,type=stage)": 2.85E-5,
+  "servicecomb.invocation(operation=perf1.impl.syncQuery,role=CONSUMER,stage=client_filters_request,statistic=count,status=200,transport=highway,type=stage)": 4269.0,
+  "servicecomb.invocation(operation=perf1.impl.syncQuery,role=CONSUMER,stage=client_filters_request,statistic=totalTime,status=200,transport=highway,type=stage)": 0.0060282,
+  "servicecomb.invocation(operation=perf1.impl.syncQuery,role=CONSUMER,stage=client_filters_request,statistic=max,status=200,transport=highway,type=stage)": 9.2E-6,
+  "servicecomb.invocation(operation=perf1.impl.syncQuery,role=CONSUMER,stage=consumer_send_request,statistic=count,status=200,transport=highway,type=stage)": 4269.0,
+  "servicecomb.invocation(operation=perf1.impl.syncQuery,role=CONSUMER,stage=consumer_send_request,statistic=totalTime,status=200,transport=highway,type=stage)": 0.099984,
+  "servicecomb.invocation(operation=perf1.impl.syncQuery,role=CONSUMER,stage=consumer_send_request,statistic=max,status=200,transport=highway,type=stage)": 1.1740000000000001E-4,
+  "servicecomb.invocation(operation=perf1.impl.syncQuery,role=CONSUMER,stage=consumer_get_connection,statistic=count,status=200,transport=highway,type=stage)": 4269.0,
+  "servicecomb.invocation(operation=perf1.impl.syncQuery,role=CONSUMER,stage=consumer_get_connection,statistic=totalTime,status=200,transport=highway,type=stage)": 0.006916800000000001,
+  "servicecomb.invocation(operation=perf1.impl.syncQuery,role=CONSUMER,stage=consumer_get_connection,statistic=max,status=200,transport=highway,type=stage)": 5.83E-5,
+  "servicecomb.invocation(operation=perf1.impl.syncQuery,role=CONSUMER,stage=consumer_write_to_buf,statistic=count,status=200,transport=highway,type=stage)": 4269.0,
+  "servicecomb.invocation(operation=perf1.impl.syncQuery,role=CONSUMER,stage=consumer_write_to_buf,statistic=totalTime,status=200,transport=highway,type=stage)": 0.0930672,
+  "servicecomb.invocation(operation=perf1.impl.syncQuery,role=CONSUMER,stage=consumer_write_to_buf,statistic=max,status=200,transport=highway,type=stage)": 1.1580000000000001E-4,
+  "servicecomb.invocation(operation=perf1.impl.syncQuery,role=CONSUMER,stage=consumer_wait_response,statistic=count,status=200,transport=highway,type=stage)": 4269.0,
+  "servicecomb.invocation(operation=perf1.impl.syncQuery,role=CONSUMER,stage=consumer_wait_response,statistic=totalTime,status=200,transport=highway,type=stage)": 0.7654931,
+  "servicecomb.invocation(operation=perf1.impl.syncQuery,role=CONSUMER,stage=consumer_wait_response,statistic=max,status=200,transport=highway,type=stage)": 5.547E-4,
+  "servicecomb.invocation(operation=perf1.impl.syncQuery,role=CONSUMER,stage=consumer_wake_consumer,statistic=count,status=200,transport=highway,type=stage)": 4269.0,
+  "servicecomb.invocation(operation=perf1.impl.syncQuery,role=CONSUMER,stage=consumer_wake_consumer,statistic=totalTime,status=200,transport=highway,type=stage)": 0.0502085,
+  "servicecomb.invocation(operation=perf1.impl.syncQuery,role=CONSUMER,stage=consumer_wake_consumer,statistic=max,status=200,transport=highway,type=stage)": 3.7370000000000003E-4,
+  "servicecomb.invocation(operation=perf1.impl.syncQuery,role=CONSUMER,stage=client_filters_response,statistic=count,status=200,transport=highway,type=stage)": 4269.0,
+  "servicecomb.invocation(operation=perf1.impl.syncQuery,role=CONSUMER,stage=client_filters_response,statistic=totalTime,status=200,transport=highway,type=stage)": 0.0227188,
+  "servicecomb.invocation(operation=perf1.impl.syncQuery,role=CONSUMER,stage=client_filters_response,statistic=max,status=200,transport=highway,type=stage)": 4.0E-5
 }
 ```
 
-
 # 四、业务定制
 
 因为ServiceComb已经初始化了servo的registry,所以业务不必再创建registry
 
 实现MetricsInitializer接口,定义业务级的Meters,或实现定制的Publisher,再通过SPI机制声明自己的实现即可。
 
-1.Meters:  
+### 1.Meters:  
   创建Meters能力均由spectator提供,可查阅[netflix spectator](https://github.com/Netflix/spectator)文档
-  
-2.Publisher:
+
+### 2.Publisher:
 周期性输出的场景,比如日志场景,通过eventBus订阅org.apache.servicecomb.foundation.metrics.PolledEvent,PolledEvent.getMeters()即是本周期的统计结果
 非周期性输出的场景,比如通过RESTful接口访问,通过globalRegistry.iterator()即可得到本周期的统计结果
-
-
-
-
-
diff --git a/java-chassis-reference/zh_CN/styles/website.css b/java-chassis-reference/zh_CN/styles/website.css
index 7c82f29..6d18bc3 100644
--- a/java-chassis-reference/zh_CN/styles/website.css
+++ b/java-chassis-reference/zh_CN/styles/website.css
@@ -6,4 +6,9 @@ table {
     table-layout: fixed;
     display:block;
     overflow-x: auto;
+}
+
+.metrics-table {
+    border-width: 1px;
+    font-size: 8px;
 }
\ No newline at end of file