You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@servicecomb.apache.org by GitBox <gi...@apache.org> on 2018/01/03 08:00:19 UTC
[GitHub] WillemJiang commented on a change in pull request #22: [SCB-118] CN Prometheus Integration MD
WillemJiang commented on a change in pull request #22: [SCB-118] CN Prometheus Integration MD
URL: https://github.com/apache/incubator-servicecomb-website/pull/22#discussion_r159372891
##########
File path: _users/cn/metrics-in-1.0.0-m1.md
##########
@@ -0,0 +1,194 @@
+---
+title: "1.0.0-m1??????"
+lang: cn
+ref: metrics
+permalink: /cn/users/metrics-in-1.0.0-m1/
+excerpt: "1.0.0-m1??????"
+last_modified_at: 2017-12-30T10:01:43-04:00
+redirect_from:
+ - /theme-setup/
+---
+
+{% include toc %}
+??????0.5.0??????????Metrics?1.0.0-m1???????????????????????ServiceComb????(dev-subscribe@servicecomb.incubator.apache.org)??????????
+
+## ??
+??????????????????????????????????????
+
+![MonolithicArch](/assets/images/MonolithicArch.png)
+
+????????????????????????????????????????
+
+![MicroserviceArch](/assets/images/MicroserviceArch.png)
+
+????????????????????????????????????CI/CD??????????????????????????????????????????????????????????
+
+## 1.0.00-m1????
+?0.5.0???????[0.5.0??????](/cn/users/metrics-in-0.5.0/)?????????
+1.metrics?foundation-metrics?????????????????????
+2.??ThreadLocal?????????????????????????????
+3.Metrics??????????????????????????????
+4.??????????????????????????????
+5.??foundation-metrics????????????????????????
+
+????0.5.0?????1.0.0-m1????????????????????Metrics???????
+
+| Module? | ?? |
+| :------------------ | :------------------------------ |
+| metrics-core | Metric???????????Metrics?????? |
+| metrics-common | Metric?????????Metric DTO?????? |
+| metrics-extension | ??Metric??????? |
+| metrics-integration | ??Metric????????? |
+| metrics-sample | ??Metric????? |
+
+?????????????
+![MetricsDependency.png](/assets/images/MetricsDependency.png)
+
+### ????????Hystrix?handler-bizkeeper????????????????????
+1.0.0-m1?????Hystrix?????TPS?Latency???????Java Chassis Bizkeeper Handler????????????????foundation-common??EventBus???????metrics-core??DefaultEventListenerManager???????????????????
+
+| ???????? | ?? |
+| :------------------------------------- | :------------------------ |
+| InvocationStartedEventListener | Consumer???Producer???? |
+| InvocationStartProcessingEventListener | Producer???????????? |
+| InvocationFinishedEventListener | Consumer?????Producer???? |
+
+*?????Java Chassis?Reactor????Vertx????Producer???Invocation????????????????????????????Invocation?????????LifeTimeInQueue????????waitInQueue????????????????????????????????????Consumer????????????????InvocationStartProcessingEvent?
+
+????????????Java Chassis?RestInvocation?HighwayServerInvoke?HighwayClient?VertxHttpMethod???????????Metrics?EventBus??????????????????????????
+
+### ??Netflix Servo??Metric????
+Netflix Servo???????????Monitor??????????
+
+| Monitor? | ?? |
+| :----------- | :------------ |
+| BasicCounter | ????????????? |
+| StepCounter | ??????? |
+| MinGauge | ???????? |
+| MaxGauge | ???????? |
+
+*???Servo???0.10.1
+
+### ????
+?????Metric????????
+1.???????????????????????Consumer??????Metric??????????
+2.?????????????????????????????????????????????????????????????Servo?????????[?Polling Intervals?](https://github.com/Netflix/servo/wiki/Getting-Started)?
+?1.0.0-m1?????servicecomb.metrics.window_time????????servo.pollers???
+
+## Metric??
+?1.0.0-m1????????Operation???Metric????????
+
+| Group | Level | Catalog | Metrics | Item |
+| :---------- | :----------------------- | :------- | :-------------- | :------------- |
+| servicecomb | instance | system | cpu | load |
+| servicecomb | instance | system | cpu | runningThreads |
+| servicecomb | instance | system | heap | init |
+| servicecomb | instance | system | heap | max |
+| servicecomb | instance | system | heap | commit |
+| servicecomb | instance | system | heap | used |
+| servicecomb | instance | system | nonHeap | init |
+| servicecomb | instance | system | nonHeap | max |
+| servicecomb | instance | system | nonHeap | commit |
+| servicecomb | instance | system | nonHeap | used |
+| servicecomb | instance/operationName | producer | waitInQueue | count |
+| servicecomb | instance/operationName | producer | lifeTimeInQueue | average |
+| servicecomb | instance/operationName | producer | lifeTimeInQueue | max |
+| servicecomb | instance/operationName | producer | lifeTimeInQueue | min |
+| servicecomb | instance/operationName | producer | executionTime | average |
+| servicecomb | instance/operationName | producer | executionTime | max |
+| servicecomb | instance/operationName | producer | executionTime | min |
+| servicecomb | instance/operationName | producer | producerLatency | average |
+| servicecomb | instance/operationName | producer | producerLatency | max |
+| servicecomb | instance/operationName | producer | producerLatency | min |
+| servicecomb | instance/operationName | producer | producerCall | total |
+| servicecomb | instance/operationName | producer | producerCall | tps |
+| servicecomb | instance/operationName | consumer | consumerLatency | average |
+| servicecomb | instance/operationName | consumer | consumerLatency | max |
+| servicecomb | instance/operationName | consumer | consumerLatency | min |
+| servicecomb | instance/operationName | consumer | consumerCall | total |
+| servicecomb | instance/operationName | consumer | consumerCall | tps |
+
+*operationName?????Operation????????Java Chassis MicroserviceQualifiedName???????.SchemaID.?????????
+
+## ????
+### ????
+??microservice.yaml?????????
+```yaml
+APPLICATION_ID: demo
+service_description:
+ name: demoService
+ version: 0.0.1
+
+servicecomb:
+ metrics:
+ #???????servo.pollers???????????
+ #???????????????,??????????5000,10000?????????????????5000?windowTimeIndex?0???????10000?windowTimeIndex?1?????
+ window_time: 5000
Review comment:
????5000
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services