config

package
v1.9.5 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	VersionFlag *bool
)

Functions

This section is empty.

Types

type Config

type Config struct {
	ListenAddress       string
	ListenPort          int
	MetricPath          string
	Labels              Labels
	ExtractServiceTimes bool

	SquidHostname string
	SquidPort     int
	Login         string
	Password      string
	Pidfile       string

	WithProxyProtocal bool
}

Config configurations for exporter

func NewConfig

func NewConfig() *Config

NewConfig creates a new config object from command line args

type Labels

type Labels struct {
	Keys   []string
	Values []string
}

func (*Labels) Set

func (l *Labels) Set(value string) error

func (*Labels) String

func (l *Labels) String() string

Jump to

Keyboard shortcuts

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