Collecting real time GC metrics

polaris · · 501 次点击    
这是一个分享于 的资源,其中的信息可能已经有所发展或是发生改变。
<p>Is there a straightforward way in Go to get information about the GC and heap sizes in order to expose them to a monitoring dashboard. I had a look at the runtime package but there doesnt seem to be anything that does that there. Ideally this shouldnt require any overhead like running the application in profiling mode, etc, but should be production ready.</p> <hr/>**评论:**<br/><br/>mwholt: <pre><p>You mean like this? <a href="https://tip.golang.org/debug/vars" rel="nofollow">https://tip.golang.org/debug/vars</a> - check the expvar package.</p></pre>Feribg: <pre><p>Yeah I think I found the tools needed with runtime.debug package and <a href="https://github.com/rcrowley/go-metrics" rel="nofollow">https://github.com/rcrowley/go-metrics</a></p></pre>karnd01: <pre><p>There are a ton of libraries around to help out, I wrote this one to try and be as low level as possible by sending metrics via UDP and that endpoint can do the math, storing or feeding into a dashboard etc. <a href="https://github.com/go-playground/stats" rel="nofollow">https://github.com/go-playground/stats</a></p></pre>

入群交流(和以上内容无关):加入Go大咖交流群,或添加微信:liuxiaoyan-s 备注:入群;或加QQ群:692541889

501 次点击  
加入收藏 微博
暂无回复
添加一条新回复 (您需要 登录 后才能回复 没有账号 ?)
  • 请尽量让自己的回复能够对别人有帮助
  • 支持 Markdown 格式, **粗体**、~~删除线~~、`单行代码`
  • 支持 @ 本站用户;支持表情(输入 : 提示),见 Emoji cheat sheet
  • 图片支持拖拽、截图粘贴等方式上传