stats

package
v0.0.0-...-c05b18b Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2018 License: Apache-2.0 Imports: 4 Imported by: 0

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

Jump to

Keyboard shortcuts

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