mpls

package
Version: v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2020 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCollector

func NewCollector() collector.Collector

NewCollector returns a new aaa.Collector instance.

Types

type Collector

type Collector struct {
}

Collector gathers metrics from the MPLS forwarding table from the remote device by running `show mpls memory` and `show mpls forwarding-table`

func (*Collector) Collect

func (c *Collector) Collect(ctx *collector.CollectContext)

Collect implements the collector.Collector interface's Collect function

func (*Collector) Describe

func (*Collector) Describe(ch chan<- *prometheus.Desc)

Describe implements the collector.Collector interface's Describe function

func (*Collector) Name

func (*Collector) Name() string

Name implements the collector.Collector interface's Name function

type LabelStatistic

type LabelStatistic struct {
	LocalLabel         string
	OutgoingLabel      string
	PrefixOrTunnelID   string
	OutgoingInterface  string
	NextHop            string
	BytesLabelSwitched float64
}

LabelStatistic refers to one entry in the stdout of `show mpls forwarding-table`.

type MemoryStatistic

type MemoryStatistic struct {
	AllocatorName string
	InUse         float64
	Allocated     float64
}

MemoryStatistic refers to one entry in the stdout of `show mpls memory`.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL