apache_http

package
v1.0.0 Latest Latest
Warning

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

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

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

This section is empty.

Types

type Config

type Config struct {
	ApacheAddr         string               `yaml:"scrape_uri,omitempty"`
	ApacheHostOverride string               `yaml:"host_override,omitempty"`
	ApacheInsecure     bool                 `yaml:"insecure,omitempty"`
	Common             common.MetricsConfig `yaml:",inline"`
}

Config controls the apache_http integration.

func (*Config) ApplyDefaults

func (c *Config) ApplyDefaults(globals integrations_v2.Globals) error

ApplyDefaults applies the integration's default configuration.

func (*Config) Identifier

func (c *Config) Identifier(globals integrations_v2.Globals) (string, error)

Identifier returns a string that identifies the integration.

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, globals integrations_v2.Globals) (integrations_v2.Integration, error)

NewIntegration instantiates a new integrations.MetricsIntegration which will handle requests to the apache http 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