Skip to content

Instantly share code, notes, and snippets.

@laiwei
Created March 28, 2013 03:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save laiwei/5260367 to your computer and use it in GitHub Desktop.
Save laiwei/5260367 to your computer and use it in GitHub Desktop.

接口规范

在线查看

已经接入的数据示例

hbase metrics

http://10.0.3.216:8000/monitor/metrics/

hbase monitor

http://10.0.3.216:8000/monitor/counters/

thrift

production 

staging

micloud

http://10.0.4.183:8888/status

miliao.mms

http://192.168.1.221:8080/status_c2349dd977dbf3a937fddfc8ebe8b381f230d923 

http://192.168.1.222:8080/status_c2349dd977dbf3a937fddfc8ebe8b381f230d923

接入

1. resin应用,富媒体组弘强老师提供了接入方法和代码实现,使用弘强老师的接口,会自动暴露出符合接入规范的http接口,通知我来配置调用就ok了。

resin应用,手册在这里

2. thrift接口

对于提供thrift接口的应用,仍然按照之前的perf-counter规范,提供数据,xbox会自动的获取这些数据

perf-counter 的规范和手册

3. java jmx monitor

如果应用支持jmx方式获取数据,可以选择这种方式

4. 最后一种办法

根据perf-counter规范,把待监控的数据,整理成为规范中描述的结构,提供一个http接口,通知我来调用。

数据查看和dashboard

http://xbox.n.xiaomi.com/dashboard/perf

报警配置

目前仍然需要大家把需求邮件发给我,我来批量配置

告诉我下面的内容

1、哪些counter需要监控
2、报警接收人及手机号(不需要手机报警可以注明);
3、接收报警的米聊群邮箱地址;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment