exporter

package
v0.4.2 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Options

type Options struct {
	ProfilingEnabled bool
	ProfilingPort    int
	MetricsEndpoint  string
	HostPort         int
	RequestTimeout   time.Duration
	// LogLevel used by the exporter's logger (debug, info, warn, error)
	LogLevel           string
	FromFetchTime      string
	UserMetricDisabled bool

	// probe
	ProbePort int
	ProbeAddr string

	// TLS
	TLSDisabled bool
	AutoTLS     bool
	CertFile    string
	KeyFile     string
	TLSHosts    []string

	// exporter
	Namespace string
	Subsystem string

	Client client.Client
	// contains filtered or unexported fields
}

Options is the list of options/flag available to the application, plus the clients needed by the application to function.

func New

func New() *Options

New creates a new instance of the application's options

func (*Options) Complete

func (o *Options) Complete() error

Complete initialises the components needed for the application to function given the options, like the auth0 client.

func (*Options) Prepare

func (o *Options) Prepare(cmd *cobra.Command) *Options

Prepare assigns the applications flag/options to the cobra cli

Jump to

Keyboard shortcuts

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