remote

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: May 24, 2018 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// PromReadURL is the url for remote prom read handler
	PromReadURL = "/api/v1/prom/remote/read"
)
View Source
const (
	// PromWriteURL is the url for the prom write handler
	PromWriteURL = "/api/v1/prom/remote/write"
)

Variables

This section is empty.

Functions

func NewPromReadHandler

func NewPromReadHandler(engine *executor.Engine, scope tally.Scope) http.Handler

NewPromReadHandler returns a new instance of handler.

func NewPromWriteHandler

func NewPromWriteHandler(store storage.Storage, scope tally.Scope) http.Handler

NewPromWriteHandler returns a new instance of handler.

Types

type PromReadHandler

type PromReadHandler struct {
	// contains filtered or unexported fields
}

PromReadHandler represents a handler for prometheus read endpoint.

func (*PromReadHandler) ServeHTTP

func (h *PromReadHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)

type PromWriteHandler

type PromWriteHandler struct {
	// contains filtered or unexported fields
}

PromWriteHandler represents a handler for prometheus write endpoint.

func (*PromWriteHandler) ServeHTTP

func (h *PromWriteHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)

Jump to

Keyboard shortcuts

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