client

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Sep 21, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package client provides prometheus client implementations.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewClient

func NewClient(address string) (*client, error)

NewClient creates a client.

ex) c, err := client.NewClient("http://:9090")

func NewClientWithBasicAuth

func NewClientWithBasicAuth(address, username string, password string) (*client, error)

NewClientWithBasicAuth creates a client with basic authentication.

ex) c, err := client.NewClientWithBasicAuth("http://:9090", "username", "password")

func NewClientWithBearerToken

func NewClientWithBearerToken(address string, token string) (*client, error)

NewClientWithBearerToken creates a client that performs bearer token authentication.

ex) c, err := client.NewClientWithBearerToken("http://:9090", "token")

Types

type Range

type Range = v1.Range

Jump to

Keyboard shortcuts

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