首页 > 代码库 > falcon接口统计

falcon接口统计

1、获取falcon counter信息:

curl -v "http://127.0.0.1:9966/api/counters" -d "endpoints=[\"172.17.0.1\"]" -d "limit=500" -d "_r=0.6046603"


2、获取falcon endpoint信息:

curl -v "http://127.0.0.1:9966/api/endpoints?q=172.17.0.1&tags&limit=500&_r=0.6046603&regex_query=1"


3、获取falcon metric值:

curl -s "http://127.0.0.1:9966/graph/history"  -d ‘{"cf":"AVERAGE","endpoint_counters":[{"counter":"cpu.idle","endpoint":"172.17.0.1"}],"start":1495158669,"end":1495162800}‘

本文出自 “忠诚的哨兵” 博客,请务必保留此出处http://tsing.blog.51cto.com/3761021/1927461

falcon接口统计