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 ¶
func New ¶
func New(logger log.Logger, c *Config) (integrations.Integration, error)
New creates a new apache_http integration. The integration scrapes metrics from an Apache HTTP server.
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 ¶
InstanceKey returns the addr of the apache server.
func (*Config) NewIntegration ¶
func (c *Config) NewIntegration(logger log.Logger) (integrations.Integration, error)
NewIntegration converts the config into an integration instance.
func (*Config) UnmarshalYAML ¶
UnmarshalYAML implements yaml.Unmarshaler for Config
Click to show internal directories.
Click to hide internal directories.