prom

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2022 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ClusterContextName = "cluster"
)
View Source
const (
	PrometheusClientID = "prom"
)

Variables

This section is empty.

Functions

func NewContext

func NewContext(client prometheus.Client) *context

NewContext creates a new Prometheus querying context from the given client.

func NewNamedContext

func NewNamedContext(client prometheus.Client, name string) *context

NewNamedContext creates a new named Prometheus querying context from the given client

func NewPrometheusClient

func NewPrometheusClient(address string, timeout, keepAlive time.Duration, queryConcurrency int, insecureSkipVerify bool,
	needRateLimit bool, auth providers.ClientAuth) (prometheus.Client, error)

NewPrometheusClient returns a prometheus.Client

func NewProvider

func NewProvider(config *providers.PromConfig) (providers.Interface, error)

NewProvider return a prometheus data provider

Types

This section is empty.

Jump to

Keyboard shortcuts

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