stats

package
v0.0.0-...-c9a967e Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 24, 2017 License: Apache-2.0 Imports: 4 Imported by: 7

Documentation

Overview

Package stats provides central statistics about tflow2

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Init

func Init()

Init initilizes this module

func Varz

func Varz(w http.ResponseWriter)

Varz is used to serve HTTP requests /varz 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
}

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL