wireguardreceiver

package module
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2023 License: Apache-2.0 Imports: 13 Imported by: 0

README

Wireguard Stats Receiver

The Wireguard stats recevier queries the stats of the connected Wireguard peers via generic netlink (Linux). wgctrl is used to fetch the stats and for the objects definition.

This receiver can we integrated with the custom OpenTelemetry Collector Builder:

receivers:
  - gomod: github.com/rogercoll/wireguardreceiver v0.0.3

Requires privileged execution

Metrics && Attributes

See metadata autogenerated file.

Todo
  • Add latest handshake

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewFactory

func NewFactory() receiver.Factory

Types

type Config

type Config struct {
	scraperhelper.ScraperControllerSettings `mapstructure:",squash"`
	// TODO: implement exclude option
	Exclude ExcludeConfig `mapstructure:"exclude"`

	// MetricsBuilderConfig config. Enable or disable stats by name.
	metadata.MetricsBuilderConfig `mapstructure:",squash"`
}

func (Config) Validate

func (c Config) Validate() error

type ExcludeConfig

type ExcludeConfig struct {
	Interface ExcludeInterfaceConfig `mapstructure:"interface"`
}

type ExcludeInterfaceConfig

type ExcludeInterfaceConfig struct {
	Names []string `mapstructure:"names"`
}

Directories

Path Synopsis
internal

Jump to

Keyboard shortcuts

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