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/01/13 08:42:01 UTC
[incubator-servicecomb-website] 02/02: Publish the web site
This is an automated email from the ASF dual-hosted git repository.
ningjiang pushed a commit to branch asf-site
in repository https://gitbox.apache.org/repos/asf/incubator-servicecomb-website.git
commit d061cf59485315c081e5a4b788aea5adf44b243c
Author: Willem Jiang <ji...@huawei.com>
AuthorDate: Sat Jan 13 16:41:43 2018 +0800
Publish the web site
---
content/assets/images/MetricsWriteFileResult.png | Bin 0 -> 59021 bytes
content/cn/users/metrics-in-1.0.0-m1/index.html | 2 +-
.../index.html | 9 +++++----
content/feed.xml | 2 +-
4 files changed, 7 insertions(+), 6 deletions(-)
diff --git a/content/assets/images/MetricsWriteFileResult.png b/content/assets/images/MetricsWriteFileResult.png
new file mode 100644
index 0000000..28a2449
Binary files /dev/null and b/content/assets/images/MetricsWriteFileResult.png differ
diff --git a/content/cn/users/metrics-in-1.0.0-m1/index.html b/content/cn/users/metrics-in-1.0.0-m1/index.html
index 83345e6..7d11d13 100644
--- a/content/cn/users/metrics-in-1.0.0-m1/index.html
+++ b/content/cn/users/metrics-in-1.0.0-m1/index.html
@@ -959,7 +959,7 @@
</tbody>
</table>
-<p><strong>当Level的值是“instance”的时候,代表微服务事例级别的Metric,否则代表微服务具体Operation的Metric,operationName使用的是Java Chassis MicroserviceQualifiedName,它是微服务名.SchemaID.操作方法名的组合。</strong></p>
+<p><strong>当Level的值是“instance”的时候,代表微服务实例级别的Metric,否则代表微服务具体Operation的Metric,operationName使用的是Java Chassis MicroserviceQualifiedName,它是微服务名.SchemaID.操作方法名的组合。</strong></p>
<h2 id="如何配置">如何配置</h2>
<h3 id="全局配置">全局配置</h3>
diff --git a/content/cn/users/metrics-write-file-extension-and-sample-in-1.0.0-m1/index.html b/content/cn/users/metrics-write-file-extension-and-sample-in-1.0.0-m1/index.html
index 679e497..49740ca 100644
--- a/content/cn/users/metrics-write-file-extension-and-sample-in-1.0.0-m1/index.html
+++ b/content/cn/users/metrics-write-file-extension-and-sample-in-1.0.0-m1/index.html
@@ -674,7 +674,7 @@
<h2 id="依赖和代码使用">依赖和代码使用</h2>
<ol>
- <li>首先需要引入metrics-write-file模块,这个模块包括了获取Metrics数据并转化为指定格式后写文件的逻辑:
+ <li>首先需要引入metrics-write-file模块,这个模块包含了获取Metrics数据并转化为指定格式后写文件的逻辑:
<div class="language-xml highlighter-rouge"><pre class="highlight"><code> <span class="nt"><dependency></span>
<span class="nt"><groupId></span>io.servicecomb.samples<span class="nt"></groupId></span>
<span class="nt"><artifactId></span>metrics-write-file<span class="nt"></artifactId></span>
@@ -683,8 +683,8 @@
</div>
<p><em>也可以参考其中的实现修改代码或复制代码到项目中。</em></p>
</li>
- <li>metrics-write-file模块不包含动态生成写文件RollingFileAppender的代码,根据项目实际使用的日志实现,如果是log4j,拷贝metrics-write-file-log4j-springboot模块中的Log4JMetricsFileWriter,如果是log4j2,拷贝metrics-write-file-log4j2-springboot模块中的Log4J2MetricsFileWriter。
- <em>也可以参考其中的实现修改代码或自己实现FileWriter。</em></li>
+ <li>metrics-write-file模块不包含动态生成写文件RollingFileAppender的代码,根据项目实际使用的日志实现,如果是log4j,拷贝metrics-write-file-log4j-springboot模块中的Log4JMetricsFileWriter,如果是log4j2,拷贝metrics-write-file-log4j2-springboot模块中的Log4J2MetricsFileWriter。 <br />
+<em>也可以参考其中的实现修改代码或自己实现FileWriter。</em></li>
</ol>
<h2 id="使用spring-boot-starter开发注意事项">使用Spring Boot Starter开发注意事项</h2>
@@ -711,7 +711,8 @@
<p>Spring Boot Starter中包含了log4j-over-slf4j,这个Log Bridge并没有完全实现log4j的所有接口,包括RollingFileAppender,所以我们需要排除它让slf4j直接调用log4j而不是这个Log Bridge,请确定这种排除对你的系统不会有影响,关于log4j-over-slf4j的更多信息可以参考<a href="https://www.slf4j.org/legacy.html#log4j-over-slf4j">这篇文章</a>。</p>
<h2 id="运行示例">运行示例</h2>
-<p>metrics-write-file-config-log4j-springboot和metrics-write-file-config-log4j2-springboot都是可以直接运行的示例项目,使用ServiceApplication启动完成后,观察输出目录target/metric/下会生成很多Metrics文件,如果在浏览器中刷新几下http://localhost:8080/f 请求,则可以看到对应的Operation级别的Metrics文件也会在目录下自动生成。</p>
+<p>metrics-write-file-config-log4j-springboot和metrics-write-file-config-log4j2-springboot都是可以直接运行的示例项目,使用ServiceApplication启动完成后,观察输出目录target/metric/下会生成很多Metrics文件,如果在浏览器中刷新几下http://localhost:8080/f 请求,则可以看到对应的Operation级别的Metrics文件也会在目录下自动生成。 <br />
+<img src="/assets/images/MetricsWriteFileResult.png" alt="MetricsWriteFileResult" /></p>
<h2 id="q--a">Q & A</h2>
<ol>
diff --git a/content/feed.xml b/content/feed.xml
index 17ba4b3..f17c1d2 100644
--- a/content/feed.xml
+++ b/content/feed.xml
@@ -1,4 +1,4 @@
-<?xml version="1.0" encoding="utf-8"?><feed xmlns="http://www.w3.org/2005/Atom" ><generator uri="https://jekyllrb.com/" version="3.4.3">Jekyll</generator><link href="/feed.xml" rel="self" type="application/atom+xml" /><link href="/" rel="alternate" type="text/html" /><updated>2018-01-12T17:44:26+08:00</updated><id>/</id><title type="html">Apache ServiceComb (incubating)</title><subtitle>The homepage of ServiceComb</subtitle><author><name>{"name"=>nil, "avatar"=> [...]
+<?xml version="1.0" encoding="utf-8"?><feed xmlns="http://www.w3.org/2005/Atom" ><generator uri="https://jekyllrb.com/" version="3.4.3">Jekyll</generator><link href="/feed.xml" rel="self" type="application/atom+xml" /><link href="/" rel="alternate" type="text/html" /><updated>2018-01-13T16:40:22+08:00</updated><id>/</id><title type="html">Apache ServiceComb (incubating)</title><subtitle>The homepage of ServiceComb</subtitle><author><name>{"name"=>nil, "avatar"=> [...]
<p>Java Chassis uses zipkin as the default tracing implementation.</p>
--
To stop receiving notification emails like this one, please contact
"commits@servicecomb.apache.org" <co...@servicecomb.apache.org>.