dpqmu84646 2017-04-30 07:56
浏览 27

如何在Go中获取Riak KV群集和节点状态数据

I'm trying to monitor Riak-KV from Go program. Riak has a client for go named 'riak-go-client', But it doesn't have any api to get Riak performance/Status data. Is there any way to get it ?

  • 写回答

1条回答 默认 最新

  • douhezhan5348 2017-05-24 06:45
    关注

    The best way to get Riak performance/status/metrics might be via its stats HTTP API. It works with any language or even using curl. As long as you know how to connect via HTTP and parse JSON, you should be able to use it.

    Using the API can be as simple as running:

    curl -v http://127.0.0.1:8098/stats -H "Accept: application/json"

    It gives you a lot of useful information like allocated and used memory, get/put statistics, CPU utilization, ring status, etc.

    Riak Explorer exposes an even more powerful API that allows not only to monitor, but also manage Riak clusters. You have to install the tool separately though.

    评论

报告相同问题?

悬赏问题

  • ¥15 Python中的request,如何使用ssr节点,通过代理requests网页。本人在泰国,需要用大陆ip才能玩网页游戏,合法合规。
  • ¥100 为什么这个恒流源电路不能恒流?
  • ¥15 有偿求跨组件数据流路径图
  • ¥15 写一个方法checkPerson,入参实体类Person,出参布尔值
  • ¥15 我想咨询一下路面纹理三维点云数据处理的一些问题,上传的坐标文件里是怎么对无序点进行编号的,以及xy坐标在处理的时候是进行整体模型分片处理的吗
  • ¥15 CSAPPattacklab
  • ¥15 一直显示正在等待HID—ISP
  • ¥15 Python turtle 画图
  • ¥15 stm32开发clion时遇到的编译问题
  • ¥15 lna设计 源简并电感型共源放大器