handler

package
v0.0.0-...-c8f7835 Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2015 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Delete

Delete returns a handler that accepts delete requests. If only a job is specified in the query, all metrics for that job are deleted. If a job and an instance is specified, all metrics for that job/instance combination are deleted.

The returned handler is already instrumented for Prometheus.

func Push

Push returns an http.Handler which accepts samples over HTTP and stores them in the MetricStore. If replace is true, all metrics for the job and instance given by the request are deleted before new ones are stored.

The returned handler is already instrumented for Prometheus.

func Status

func Status(
	ms storage.MetricStore,
	assetFunc func(string) ([]byte, error),
	flags map[string]string,
	buildInfo map[string]string,
) func(http.ResponseWriter, *http.Request)

Status serves the status page.

Types

This section is empty.

Jump to

Keyboard shortcuts

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