Skip to content

updated metrics usage#165

Open
eric-lee-ltk wants to merge 2 commits into
ApacheInfra:masterfrom
eric-lee-ltk:metrics
Open

updated metrics usage#165
eric-lee-ltk wants to merge 2 commits into
ApacheInfra:masterfrom
eric-lee-ltk:metrics

Conversation

@eric-lee-ltk
Copy link
Copy Markdown
Contributor

No description provided.

Comment thread _users/Metrics.md Outdated

{% include toc %}
微服务框架从0.4.1版本开始支持监控功能Metrics,请注意这个功能还处于开发(Preview)阶段,请不要部署到生产环境,并且我们未来会做较大的调整,更多讨论会持续发布在[Google Group](https://groups.google.com/forum/#!forum/servicecomb-developers)中。
微服务框架从0.4.1版本开始支持监控功能Metrics,请注意这个功能还处于开发(Preview)阶段,并且我们未来会做较大的调整,更多讨论会持续发布在[Google Group](https://groups.google.com/forum/#!forum/servicecomb-developers)中。
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The version should be 0.5.0

Comment thread _users/Metrics.md Outdated
我们提供了一个配置好的Log4j2配置文件作为参考,如果微服务项目中使用的是Log4j2作为日志输出实现,则可以直接使用,将其中的内容合并到项目日志配置中即可:
[log4j2.xml](/assets/files/log4j2.xml)

如果使用的是Log4j1,则可以使用下面这个参考配置:
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It should be Log4j

Comment thread _users/cn/Metrics.md Outdated

## 附件
我们提供了一个配置好的Log4j2配置文件作为参考,如果微服务项目中使用的是Log4j2作为日志输出实现,则可以直接使用,将其中的内容合并到项目日志配置中即可:
[log4j2.xml](/assets/files/log4j2.xml)
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please show some simple example instead of whole file here.

Comment thread assets/files/log4j.properties Outdated
@@ -0,0 +1,273 @@
log4j.logger.averageServiceExecutionTime=ERROR, averageServiceExecutionTimeLogger
log4j.additivity.averageServiceExecutionTime=false
log4j.appender.averageServiceExecutionTimeLogger=com.huawei.paas.cse.tracing.span.SpanFileAppender
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please move it away, as it's a private feature.

Signed-off-by: zhengyangyong <yangyong.zheng@huawei.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants