status

package
v5.0.0-alpha2+incompat... Latest Latest
Warning

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

Go to latest
Published: May 2, 2016 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Overview

Package status reads Apache HTTPD server status from the mod_status module.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New() helper.MetricSeter

New creates new instance of MetricSeter

func ParseMatchFloat

func ParseMatchFloat(inputString, hostname, fieldName string) float64

Types

type MetricSeter

type MetricSeter struct {
	URLs map[string]string // Map of host to endpoint URL.
}

func (*MetricSeter) Fetch

func (m *MetricSeter) Fetch(ms *helper.MetricSet, host string) (event common.MapStr, err error)

Fetch makes an HTTP request to fetch status metrics from the mod_status endpoint.

func (*MetricSeter) Setup

func (m *MetricSeter) Setup(ms *helper.MetricSet) error

Setup the URLs to the mod_status endpoints.

Jump to

Keyboard shortcuts

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