Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
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 ¶
InstanceKey returns the addr of the squid instance.
func (*Config) NewIntegration ¶
func (c *Config) NewIntegration(log log.Logger) (integrations.Integration, error)
NewIntegration returns the Squid Exporter Integration
func (*Config) UnmarshalYAML ¶
UnmarshalYAML implements yaml.Unmarshaler for Config
Click to show internal directories.
Click to hide internal directories.