squid_exporter

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Sep 25, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

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

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL