stats

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Sep 25, 2020 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Collector

type Collector struct {
	// contains filtered or unexported fields
}

Collector is responsible for collecting stats from the Openflow client, calculating the delta compared with the last reported stats, and reporting it to the antrea-controller summary API.

func NewCollector

func NewCollector(antreaClientProvider agent.AntreaClientProvider, ofClient openflow.Client) *Collector

func (*Collector) Run

func (m *Collector) Run(stopCh <-chan struct{})

Run runs a loop that collects statistics and reports them until the provided channel is closed.

Jump to

Keyboard shortcuts

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