httpdreceiver

package module
v0.38.0 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2021 License: Apache-2.0 Imports: 18 Imported by: 0

README

HTTPd Receiver

This receiver fetches stats from a Httpd server using the server-status?auto endpoint.

Supported pipeline types: metrics

🚧 This receiver is in BETA. Configuration fields and metric data model are subject to change.

Prerequisites

This receiver supports Apache httpd version 2.4+

mod_status module

In order to receive server statistics, you must configure the server's httpd.conf file to enable status support.

Configuration

The following settings are required:

  • endpoint (default: http://localhost:8080/server-status?auto): The URL of the httpd status endpoint

The following settings are optional:

  • collection_interval (default = 10s): This receiver collects metrics on an interval. This value must be a string readable by Golang's time.ParseDuration. Valid time units are ns, us (or µs), ms, s, m, h.
Example Configuration
receivers:
  httpd:
    endpoint: "http://localhost:8080/server-status?auto"

The full list of settings exposed for this receiver are documented here with detailed sample configurations here.

Metrics

Details about the metrics produced by this receiver can be found in metadata.yaml

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewFactory

func NewFactory() component.ReceiverFactory

NewFactory creates a factory for httpd receiver.

Types

type Config

type Config struct {
	scraperhelper.ScraperControllerSettings `mapstructure:",squash"`
	confighttp.HTTPClientSettings           `mapstructure:",squash"`
	// contains filtered or unexported fields
}

func (*Config) Validate

func (cfg *Config) Validate() error

Directories

Path Synopsis
internal

Jump to

Keyboard shortcuts

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