prometheus

package
v0.13.4 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2022 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