Data model

Open-Falcon,采用和OpenTSDB相似的数据格式:metric、endpoint加多组key value tags,举两个例子:

  1. {
  2. metric: load.1min,
  3. endpoint: open-falcon-host,
  4. tags: srv=falcon,idc=aws-sgp,group=az1,
  5. value: 1.5,
  6. timestamp: `date +%s`,
  7. counterType: GAUGE,
  8. step: 60
  9. }
  10. {
  11. metric: net.port.listen,
  12. endpoint: open-falcon-host,
  13. tags: port=3306,
  14. value: 1,
  15. timestamp: `date +%s`,
  16. counterType: GAUGE,
  17. step: 60
  18. }

其中,metric是监控指标名称,endpoint是监控实体,tags是监控数据的属性标签,counterType是Open-Falcon定义的数据类型(取值为GAUGE、COUNTER),step为监控数据的上报周期,value和timestamp是有效的监控数据。