collector

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2023 License: MIT Imports: 14 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Collector

type Collector interface {
	// Update metrics and sends to the Prometheus.Metric channel.
	Update(ch chan<- prometheus.Metric) error
}

Collector is the interface a collector has to implement.

func NewBFDCollector added in v0.2.11

func NewBFDCollector(logger log.Logger) (Collector, error)

NewBFDCollector collects BFD metrics, implemented as per the Collector interface.

func NewBGP6Collector

func NewBGP6Collector(logger log.Logger) (Collector, error)

NewBGP6Collector collects BGPv6 metrics, implemented as per the Collector interface.

func NewBGPCollector

func NewBGPCollector(logger log.Logger) (Collector, error)

NewBGPCollector collects BGP metrics, implemented as per the Collector interface.

func NewBGPL2VPNCollector added in v0.2.0

func NewBGPL2VPNCollector(logger log.Logger) (Collector, error)

NewBGPL2VPNCollector collects BGP L2VPN metrics, implemented as per the Collector interface.

func NewOSPFCollector

func NewOSPFCollector(logger log.Logger) (Collector, error)

NewOSPFCollector collects OSPF metrics, implemented as per the Collector interface.

func NewPIMCollector added in v0.2.20

func NewPIMCollector(logger log.Logger) (Collector, error)

NewPIMCollector collects PIM metrics, implemented as per the Collector interface.

func NewVRRPCollector added in v0.2.17

func NewVRRPCollector(logger log.Logger) (Collector, error)

NewVRRPCollector collects VRRP metrics, implemented as per the Collector interface.

type Exporter added in v1.0.0

type Exporter struct {
	Collectors map[string]Collector
	// contains filtered or unexported fields
}

Exporter collects all collector metrics, implemented as per the prometheus.Collector interface.

func NewExporter

func NewExporter(logger log.Logger) (*Exporter, error)

NewExporter returns a new Exporter.

func (*Exporter) Collect added in v1.0.0

func (e *Exporter) Collect(ch chan<- prometheus.Metric)

Collect implemented as per the prometheus.Collector interface.

func (*Exporter) Describe added in v1.0.0

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

Describe implemented as per the prometheus.Collector interface.

type VrrpInstanceInfo added in v0.2.17

type VrrpInstanceInfo struct {
	Subinterface string `json:"interface"`
	Status       string
	Statistics   VrrpInstanceStats `json:"stats"`
}

type VrrpInstanceStats added in v0.2.17

type VrrpInstanceStats struct {
	AdverTx         *uint32
	AdverRx         *uint32
	GarpTx          *uint32
	NeighborAdverTx *uint32
	Transitions     *uint32
}

type VrrpVrInfo added in v0.2.17

type VrrpVrInfo struct {
	Vrid      uint32
	Interface string
	V6Info    VrrpInstanceInfo `json:"v6"`
	V4Info    VrrpInstanceInfo `json:"v4"`
}

Jump to

Keyboard shortcuts

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