Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrNoAddress = errors.New("no address was provided")
ErrNoHostname = errors.New("no hostname in provided address")
ErrNoPort = errors.New("no port in provided address")
)
Functions ¶
func New ¶
func New(c *Config) (integrations.Integration, error)
New creates a new squid integration. The integration scrapes metrics from an Squid exporter running with the https://github.com/boynux/squid-exporter
Types ¶
type Config ¶
type Config struct {
Address string `yaml:"address"`
Username string `yaml:"username"`
Password config_util.Secret `yaml:"password"`
Host string
Port int
}
Config is the configuration for the squid integration
func (*Config) InstanceKey ¶
func (c *Config) InstanceKey(agentKey string) (string, error)
InstanceKey returns the addr of the squid instance.
func (*Config) Name ¶
func (c *Config) Name() string
Name returns the integration name this config is associated with.
func (*Config) NewIntegration ¶
func (c *Config) NewIntegration(log log.Logger) (integrations.Integration, error)
NewIntegration returns the Squid Exporter Integration
func (*Config) UnmarshalYAML ¶
func (c *Config) UnmarshalYAML(unmarshal func(interface{}) error) error
UnmarshalYAML implements yaml.Unmarshaler for Config
Click to show internal directories.
Click to hide internal directories.