package
0.5.0
Repository: https://github.com/leoluk/vflow.git
Documentation: pkg.go.dev

# Packages

No description provided by the author

# README

vFlow Monitoring

vFlow monitoring collects all statistical and diagnostic information about the vFlow itself.

MetricTypeAPI KeyProtocolDescription
udp.queueGaugeUDPQueueIPFIXUDP packets in queue
udp.rateGaugeUDPCountIPFIXUDP packets per second
decode.rateGaugeDecodedCountIPFIXDecoded packets per second
udp.mirror.queueGaugeUDPMirrorQueueIPFIXUDP packets in mirror's queue
mq.queueGaugeMessageQueueIPFIXDecoded message in mq's queue
mq.error.rateGaugeMQErrorCountIPFIXMessage queue errors per second
udp.queueGaugeUDPQueueSFLOWUDP packets in queue
udp.rateGaugeUDPCountSFLOWUDP packets per second
decode.rateGaugeDecodedCountSFLOWDecoded packets per second
mq.queueGaugeMessageQueueSFLOWDecoded message in mq's queue
mq.error.rateGaugeMQErrorCountSFLOWMessage queue errors per second
mem.heap.allocGaugeMemHeapAllocSYSTEMHeapAlloc is bytes of allocated heap objects
mem.allocGaugeMemAllocSYSTEMBytes allocated and not yet freed
mcache.inuseGaugeMCacheInuseSYSTEMBytes used by mcache structures
mem.total.allocCounterMemTotalAllocSYSTEMBytes allocated
mem.heap.sysGaugeMemHeapSysSYSTEMBytes obtained from system
num.goroutineGaugeNumGoRoutineSYSTEMThe number of goroutines that currently exist

Grafana sample dashboard

Alt text

vFlow API

You can hit vFlow stats API directy to create your own monitoring

Flow API : http://localhost:8081/flow

{
   "IPFIX" : {
      "MessageQueue" : 0,
      "DecodedCount" : 733,
      "MQErrorCount" : 0,
      "UDPCount" : 733,
      "UDPMirrorQueue" : 0,
      "UDPQueue" : 0,
      "Workers" : 100
   },
   "SFlow" : {
      "MessageQueue" : 0,
      "UDPCount" : 268,
      "MQErrorCount" : 0,
      "DecodedCount" : 253,
      "UDPQueue" : 0,
      "Workers" : 100
   },
   "StartTime" : 1490134512
}

System API : http://localhost:8081/sys

{
   "GCSys" : 450560,
   "MemTotalAlloc" : 11435376,
   "MCacheInuse" : 4800,
   "GCNext" : 5053510,
   "MemHeapReleased" : 0,
   "NumGoroutine" : 237,
   "GoVersion" : "go1.7.4",
   "NumLogicalCPU" : 4,
   "MaxProcs" : 4, 
   "GCLast" : "2017-03-21 22:17:50.923246779 +0000 UTC",
   "MemHeapAlloc" : 4151416,
   "MemAlloc" : 4151416,
   "StartTime" : 1490134512,
   "MemHeapSys" : 5734400
}