prom

package
v0.15.9 Latest Latest
Warning

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

Go to latest
Published: Aug 12, 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 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