prometheus

package
v0.47.1 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ProviderType = "Prometheus"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Option

type Option func(*Provider)

func WithBasicAuth

func WithBasicAuth(username, password string) Option

func WithLogger

func WithLogger(logger *zap.Logger) Option

func WithTimeout

func WithTimeout(timeout time.Duration) Option

type Provider

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

Provider is a client for prometheus.

func NewProvider

func NewProvider(address string, opts ...Option) (*Provider, error)

func (*Provider) QueryPoints

func (p *Provider) QueryPoints(ctx context.Context, query string, queryRange metrics.QueryRange) ([]metrics.DataPoint, error)

func (*Provider) Type

func (p *Provider) Type() string

Jump to

Keyboard shortcuts

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