vmware_exporter

package
v0.40.0-rc.2 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultConfig = Config{
	ChunkSize:               256,
	CollectConcurrency:      8,
	ObjectDiscoveryInterval: 0,
	EnableExporterMetrics:   true,
}

DefaultConfig holds non-zero default options for hte Config when it is unmarshaled from YAML.

Functions

This section is empty.

Types

type Config

type Config struct {
	ChunkSize               int                `yaml:"request_chunk_size,omitempty"`
	CollectConcurrency      int                `yaml:"collect_concurrency,omitempty"`
	VSphereURL              string             `yaml:"vsphere_url,omitempty"`
	VSphereUser             string             `yaml:"vsphere_user,omitempty"`
	VSpherePass             config_util.Secret `yaml:"vsphere_password,omitempty"`
	ObjectDiscoveryInterval time.Duration      `yaml:"discovery_interval,omitempty"`
	EnableExporterMetrics   bool               `yaml:"enable_exporter_metrics,omitempty"`
}

Config configures the vmware_exporter integration.

func (*Config) InstanceKey

func (c *Config) InstanceKey(agentKey string) (string, error)

InstanceKey returns a string that identifies the instance of the integration.

func (*Config) Name

func (c *Config) Name() string

Name returns the name of this integration.

func (*Config) NewIntegration

func (c *Config) NewIntegration(log log.Logger) (integrations.Integration, error)

New creates a new instance of this integration.

func (*Config) UnmarshalYAML

func (c *Config) UnmarshalYAML(unmarshal func(interface{}) error) error

UnmarshalYAML implements the Unmarshaler interface.

Jump to

Keyboard shortcuts

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