web

package
v0.0.0-...-ec3894d Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2019 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Appendable

type Appendable interface {
	Appender() (storage.Appender, error)
}

Appendable returns an Appender.

type Handler

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

Handler serves various HTTP endpoints of the Prometheus server

func New

func New(logger log.Logger, o *Options) *Handler

func (*Handler) Quit

func (h *Handler) Quit() <-chan struct{}

Quit returns the receive-only quit channel.

func (*Handler) Ready

func (h *Handler) Ready()

Ready sets Handler to be ready.

func (*Handler) Run

func (h *Handler) Run(ctx context.Context) error

Run serves the HTTP endpoints.

type Options

type Options struct {
	Receiver       *receive.Receiver
	Context        context.Context
	ListenAddress  string
	MaxConnections int
	ReadTimeout    time.Duration
	Registry       prometheus.Registerer
	ReadyStorage   *tsdb.ReadyStorage
}

Options for the web Handler.

Jump to

Keyboard shortcuts

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