Documentation
¶
Overview ¶
Package apache_http embeds https://github.com/Lusitaniae/apache_exporter
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultConfig = Config{
ApacheAddr: "http://localhost/server-status?auto",
ApacheHostOverride: "",
ApacheInsecure: false,
}
DefaultConfig holds the default settings for the apache_http integration
Functions ¶
Types ¶
type Config ¶
type Config struct {
ApacheAddr string `yaml:"scrape_uri,omitempty"`
ApacheHostOverride string `yaml:"host_override,omitempty"`
ApacheInsecure bool `yaml:"insecure,omitempty"`
}
Config controls the apache_http integration.
func (*Config) InstanceKey ¶
func (c *Config) InstanceKey(agentKey string) (string, error)
InstanceKey returns the addr of the apache server.
func (*Config) Name ¶
func (c *Config) Name() string
Name returns the name of the integration this config is for.
func (*Config) NewIntegration ¶
func (c *Config) NewIntegration(logger log.Logger) (integrations.Integration, error)
NewIntegration converts the config into an integration instance.
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.