Documentation ¶
Overview ¶
Package stats provides central statistics about tflow2
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Metrics ¶
func Metrics(w http.ResponseWriter)
Metrics is used to serve HTTP requests /metrics and send the statistics to a client in borgmon/prometheus compatible format
Types ¶
type Stats ¶
type Stats struct { StartTime int64 Flows4 uint64 Flows6 uint64 Queries uint64 BirdCacheHits uint64 BirdCacheMiss uint64 FlowPackets uint64 FlowBytes uint64 Netflow9packets uint64 Netflow9bytes uint64 IPFIXpackets uint64 IPFIXbytes uint64 SflowPackets uint64 SflowBytes uint64 }
Stats represents statistics of this program that are to be exported via /varz
var GlobalStats Stats
GlobalStats is instance of `Stats` to keep stats of this program
Click to show internal directories.
Click to hide internal directories.