prometheus

package
v0.0.0-...-c2c0533 Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultPrometheusQueryTimeout = 10 * time.Second
)

Variables

This section is empty.

Functions

This section is empty.

Types

type PromClient

type PromClient interface {
	// QueryByNodeIP queries data by node IP.
	QueryByNodeIP(string, string) (string, error)
	// QueryByNodeName queries data by node IP.
	QueryByNodeName(string, string) (string, error)
	// QueryByNodeIPWithOffset queries data by node IP with offset.
	QueryByNodeIPWithOffset(string, string, string) (string, error)
}

PromClient provides client to interact with Prometheus.

func NewPromClient

func NewPromClient(addr string) (PromClient, error)

NewPromClient returns PromClient interface.

Jump to

Keyboard shortcuts

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