师傅你而 发表于 2019-1-26 13:14:49

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}'
  

  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"}]'
  

  




页: [1]
查看完整版本: falcon接口统计