prometheus

package
v0.15.8 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewClient

func NewClient(c *Credentials, addr string) (v1.API, error)

NewClient returns a new client for the Prometheus HTTP API.

Types

type Credentials

type Credentials struct {
	Username string
	Password config.Secret
}

Credentials contains Basic Authentication credentials to access Prometheus.

Jump to

Keyboard shortcuts

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