You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@servicecomb.apache.org by ni...@apache.org on 2018/03/15 08:58:00 UTC

[incubator-servicecomb-java-chassis] branch master updated: SCB-386 fix metrics samples readme (#603)

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

ningjiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-servicecomb-java-chassis.git


The following commit(s) were added to refs/heads/master by this push:
     new e543383  SCB-386 fix metrics samples readme (#603)
e543383 is described below

commit e54338354e5547c3fbc1e80bc6d0c9cf98bf39b8
Author: zhengyangyong <ya...@huawei.com>
AuthorDate: Thu Mar 15 16:57:58 2018 +0800

    SCB-386 fix metrics samples readme (#603)
    
    Signed-off-by: zhengyangyong <ya...@huawei.com>
---
 samples/metrics-extend-healthcheck/README.md |  5 +++++
 samples/metrics-write-file-sample/README.md  | 12 +++++++++++-
 2 files changed, 16 insertions(+), 1 deletion(-)

diff --git a/samples/metrics-extend-healthcheck/README.md b/samples/metrics-extend-healthcheck/README.md
index 7abd173..97bac1b 100644
--- a/samples/metrics-extend-healthcheck/README.md
+++ b/samples/metrics-extend-healthcheck/README.md
@@ -32,6 +32,11 @@ In this demo,we had make two checkers :
 </dependency>
 ```
 
+### Start service
+```bash
+mvn spring-boot:run
+```
+
 ### Do check and get result
 If you had config rest transport address in microservice.yaml like:
 ```yaml
diff --git a/samples/metrics-write-file-sample/README.md b/samples/metrics-write-file-sample/README.md
index b6e04163..8f3a32c 100644
--- a/samples/metrics-write-file-sample/README.md
+++ b/samples/metrics-write-file-sample/README.md
@@ -15,4 +15,14 @@ This module contain log4j2 MetricsFileWriter implement if your project use it as
 This module contain log4j MetricsFileWriter implement if your project use it as Logging component.
 
 ## How to use
-Startup ServiceApplication in  metrics-write-file-log4j2-springboot or metrics-write-file-log4j-springboot,you can see metric files had generated in **target/metric** folder,open your browser and make a request to http://localhost:8080/f ,wait a moment then you can see invocation metric files also be generated.
\ No newline at end of file
+Startup ServiceApplication in  metrics-write-file-log4j2-springboot or metrics-write-file-log4j-springboot
+
+1. If start service by maven
+```bash
+mvn spring-boot:run
+```
+you can see metric files had generated in **samples/metrics-write-file-sample/metrics-write-file-log4j(log4j2)-springboot/target/metric** folder,open your browser and make a request to http://localhost:8080/f ,wait a moment then you can see invocation metric files also be generated.
+
+2. If start service by IDE   
+
+you can see metric files had generated in **target/metric** folder,open your browser and make a request to http://localhost:8080/f ,wait a moment then you can see invocation metric files also be generated.

-- 
To stop receiving notification emails like this one, please contact
ningjiang@apache.org.