metrics

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: May 23, 2021 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BpfLoader

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

BpfLoader will load the BPF program and receive metrics

func NewBPFLoader

func NewBPFLoader(IP string, ifIndex int) *BpfLoader

NewBPFLoader creates a eBPF loader

func (*BpfLoader) CleanEBPF

func (bl *BpfLoader) CleanEBPF()

CleanEBPF closes all eBPF objects

func (*BpfLoader) GetMetrics

func (bl *BpfLoader) GetMetrics(values map[string]*uint64)

GetMetrics retrieves the metrics from eBPF the maps.

func (*BpfLoader) Load

func (bl *BpfLoader) Load() *BpfLoader

Load method loads the BPF program into the kernel

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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