vsphere

package
v0.0.5-beta Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2024 License: Apache-2.0 Imports: 30 Imported by: 2

Documentation

Overview

Package vsphere implements the exporter's functionality.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	ListenAddr              string
	TelemetryPath           string
	TLSConfigPath           string
	ChunkSize               int
	CollectConcurrency      int
	VSphereURL              *url.URL
	ObjectDiscoveryInterval time.Duration
	EnableExporterMetrics   bool
}

Config represents needed config structure for vSphere exporter

func (*Config) RegisterFlags

func (c *Config) RegisterFlags(fs *flag.FlagSet)

RegisterFlags register the flag params for the exporter

type Exporter

type Exporter struct {
	// contains filtered or unexported fields
}

Exporter holds the data needed to run a vSphere exporter

func NewExporter

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

NewExporter creates a new vSphere exporter from the given config

func (*Exporter) ServeHTTP

func (e *Exporter) ServeHTTP(w http.ResponseWriter, r *http.Request)

func (*Exporter) Start

func (e *Exporter) Start() error

Start runs the exporter

Jump to

Keyboard shortcuts

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