prometheus

package
v0.4.101 Latest Latest
Warning

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

Go to latest
Published: Feb 23, 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