[ 
https://issues.apache.org/jira/browse/SCB-1017?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16683086#comment-16683086
 ] 

ASF GitHub Bot commented on SCB-1017:
-------------------------------------

heyile commented on a change in pull request #987: [SCB-1017]add os cpu net 
info in the metrics with linux os
URL: 
https://github.com/apache/servicecomb-java-chassis/pull/987#discussion_r232513021
 
 

 ##########
 File path: 
foundations/foundation-metrics/src/main/java/org/apache/servicecomb/foundation/metrics/MetricsBootstrap.java
 ##########
 @@ -41,13 +47,37 @@
 
   private ScheduledExecutorService executorService;
 
+  //cpu
+  private ScheduledExecutorService cpuExcutorService;
+
+  //network
+  private ScheduledExecutorService netExcutorService;
+
+  private CpuNode cpuNode;
+
+  private final Map<String, NetNode> netNodeMap = new HashMap<>();
+
   public void start(CompositeRegistry globalRegistry, EventBus eventBus) {
     this.globalRegistry = globalRegistry;
     this.eventBus = eventBus;
+    cpuNode = CpuNode.getINSTANCE();
     this.executorService = Executors.newScheduledThreadPool(1,
         new ThreadFactoryBuilder()
             .setNameFormat("spectator-poller-%d")
             .build());
+    if (!System.getProperty("os.name").toLowerCase().startsWith("win")) {
 
 Review comment:
   ok

----------------------------------------------------------------
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:
[email protected]


> [SCB-1017] add os cpu net info  in the metrics with linux os
> ------------------------------------------------------------
>
>                 Key: SCB-1017
>                 URL: https://issues.apache.org/jira/browse/SCB-1017
>             Project: Apache ServiceComb
>          Issue Type: Improvement
>            Reporter: 何一乐
>            Priority: Major
>




--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to