metrics

package
v3.7.0-0.128.0+incompa... Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2017 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HTTPBackendAvailable

func HTTPBackendAvailable(u *url.URL) healthz.HealthzChecker

HTTPBackendAvailable returns a healthz check that verifies a backend responds to a GET to the provided URL with 2xx or 3xx response.

func Listen

func Listen(listenAddr string, username, password string, checks ...healthz.HealthzChecker)

Listen starts a server for health, metrics, and profiling on the provided listen port. It will terminate the process if the server fails. Metrics and profiling are only exposed if username and password are provided and the user's input matches.

func ProxyProtocolHTTPBackendAvailable

func ProxyProtocolHTTPBackendAvailable(u *url.URL) healthz.HealthzChecker

ProxyProtocolHTTPBackendAvailable returns a healthz check that verifies a backend supporting the HAProxy PROXY protocol responds to a GET to the provided URL with 2xx or 3xx response.

Types

This section is empty.

Directories

Path Synopsis
Package haproxy is inspired by https://github.com/prometheus/haproxy_exporter
Package haproxy is inspired by https://github.com/prometheus/haproxy_exporter

Jump to

Keyboard shortcuts

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