Documentation ¶
Index ¶
- Variables
- type Config
- func (c *Config) ApplyDefaults(g integrations.Globals) error
- func (c *Config) Identifier(g integrations.Globals) (string, error)
- func (c *Config) Name() string
- func (c *Config) NewIntegration(log log.Logger, g integrations.Globals) (integrations.Integration, error)
- func (c *Config) UnmarshalYAML(unmarshal func(interface{}) error) error
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 ¶
ApplyDefaults applies the integration's default configuration.
func (*Config) Identifier ¶
Identifier returns a string that identifies the instance of the 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 ¶
UnmarshalYAML implements the Unmarshaler interface.
Click to show internal directories.
Click to hide internal directories.