vmware_exporter_v2

package
v1.5.0-rc.1 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2024 License: Apache-2.0 Imports: 9 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"`
	Common                  common.MetricsConfig `yaml:",inline"`
}

Config configures the vmware_exporter integration.

func (*Config) ApplyDefaults

func (c *Config) ApplyDefaults(g integrations.Globals) error

ApplyDefaults applies the integration's default configuration.

func (*Config) Identifier

func (c *Config) Identifier(g integrations.Globals) (string, error)

Identifier 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, g integrations.Globals) (integrations.Integration, error)

NewIntegration constructs 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