prom

package
v0.15.17 Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2020 License: Apache-2.0 Imports: 24 Imported by: 0

Documentation

Overview

Package prom provides custom handlers that support the prometheus query endpoints.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ApplyRangeWarnings added in v0.15.16

func ApplyRangeWarnings(
	query string, meta *block.ResultMetadata,
) error

ApplyRangeWarnings applies warnings encountered during execution.

func NewReadHandler

func NewReadHandler(opts Options, hOpts options.HandlerOptions) http.Handler

NewReadHandler creates a handler to handle PromQL requests.

func NewReadInstantHandler

func NewReadInstantHandler(opts Options, hOpts options.HandlerOptions) http.Handler

NewReadInstantHandler creates a handler to handle PromQL requests.

Types

type Options

type Options struct {
	PromQLEngine *promql.Engine
}

Options defines options for PromQL handler.

Jump to

Keyboard shortcuts

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