api

package
v1.2.2 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2019 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const (
	REMOTE_READ_SAMPLE_LIMIT       = 1000000
	REMOTE_READ_CONCURRENCY_LIMIT  = 50
	REMOTE_READ_MAX_BYTES_IN_FRAME = 1048576 // 1MB recommended by protobuf
)

Variables

This section is empty.

Functions

func NewPromHTTPClient

func NewPromHTTPClient(addr, path string, tlsConfig *tls.Config) (prom_api_client.API, error)

Types

type PromAPI

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

func NewPromAPI

func NewPromAPI(promQLEngine *promql.Engine, notifier *notifier.Manager, ruleManager *rules.Manager, log *logger.Logger) *PromAPI

func (*PromAPI) RouterForStorage

func (api *PromAPI) RouterForStorage(storage storage.Storage) *route.Router

Jump to

Keyboard shortcuts

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