Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

metric问题请教 #105

Open
dekunPeace opened this issue Nov 1, 2018 · 1 comment
Open

metric问题请教 #105

dekunPeace opened this issue Nov 1, 2018 · 1 comment

Comments

@dekunPeace
Copy link

现在是不是只支持对接graphite,prometheus还有集成进来是吗?

@Zha-Zha
Copy link
Contributor

Zha-Zha commented Nov 1, 2018

目前还没有集成其他系统,metrics扩展功能目前还在dev分支,将在下个release版本中提供。
需要支持prometheus的话,可以先基于dev分支实现一个StatWriter,然后在启动时调用metrics.AddWriter(key string, sw StatWriter)就可以添加自定义扩展了。StatWriter的实现可以参考motan-go/metrics/graphite.go

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

No branches or pull requests

2 participants