exporter

package
v0.0.0-...-4f7f726 Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Start

func Start(log logr.Logger, cfg Config) error

Start listens and serves the metrics service.

Types

type Config

type Config struct {
	// ListenAddress is the address to listen on for web interface and telemetry.
	ListenAddress string
	// MetricsPath is the path under which to expose metrics.
	MetricsPath string
	// OpenvpnStatusPaths are the paths at which OpenVPN places its status files.
	OpenvpnStatusPaths string
	// IgnoreIndividuals if true ignores metrics for individuals.
	IgnoreIndividuals bool
}

Config is the configuration of the OpenVPN metrics exporter.

func NewDefaultConfig

func NewDefaultConfig() Config

NewDefaultConfig creates Config with default values.

Jump to

Keyboard shortcuts

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