Documentation
¶
Overview ¶
Package snmp_exporter embeds https://github.com/prometheus/snmp_exporter
Index ¶
- Variables
- type Config
- func (c *Config) ApplyDefaults(globals integrations_v2.Globals) error
- func (c *Config) Identifier(globals integrations_v2.Globals) (string, error)
- func (c *Config) Name() string
- func (c *Config) NewIntegration(log log.Logger, globals integrations_v2.Globals) (integrations_v2.Integration, error)
- func (c *Config) UnmarshalYAML(unmarshal func(interface{}) error) error
- type SNMPTarget
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultConfig = Config{
WalkParams: make(map[string]snmp_config.WalkParams),
SnmpConfigFile: "",
}
DefaultConfig holds the default settings for the snmp_exporter integration.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
WalkParams map[string]snmp_config.WalkParams `yaml:"walk_params,omitempty"`
SnmpConfigFile string `yaml:"config_file,omitempty"`
SnmpTargets []SNMPTarget `yaml:"snmp_targets"`
Common common.MetricsConfig `yaml:",inline"`
// contains filtered or unexported fields
}
Config configures the SNMP integration.
func (*Config) ApplyDefaults ¶
func (c *Config) ApplyDefaults(globals integrations_v2.Globals) error
ApplyDefaults applies the integration's default configuration.
func (*Config) Identifier ¶
func (c *Config) Identifier(globals integrations_v2.Globals) (string, error)
Identifier returns a string that identifies the integration.
func (*Config) NewIntegration ¶
func (c *Config) NewIntegration(log log.Logger, globals integrations_v2.Globals) (integrations_v2.Integration, error)
NewIntegration creates a new SNMP integration.
func (*Config) UnmarshalYAML ¶
func (c *Config) UnmarshalYAML(unmarshal func(interface{}) error) error
UnmarshalYAML implements yaml.Unmarshaler for Config.
type SNMPTarget ¶
type SNMPTarget struct {
Name string `yaml:"name"`
Target string `yaml:"address"`
Module string `yaml:"module"`
WalkParams string `yaml:"walk_params,omitempty"`
}
SNMPTarget defines a target device to be used by the integration.
Click to show internal directories.
Click to hide internal directories.