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®ex_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}'
4、获取falcon最新metric值:
curl -s "http://127.0.0.1:9966/graph/last/raw" -d '[{"counter":"cpi.idle","endpoint":"172.17.0.1"}]'
curl -s "http://127.0.0.1:9966/graph/last" -d '[{"counter":"cpi.idle","endpoint":"172.17.0.1"}]'
转载于:https://blog.51cto.com/tsing/1927461