prom

package
v0.0.0-...-6eb52ac Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client interface {
	// Query sends a GET request to Prometheus with the "query" field
	// in the URL's query string set using the provided arguments.
	Query(query string, queryTime time.Time) ([]byte, error)
}

Client provides interface for communicating with the Prometheus API.

func NewGCPManagedPrometheusClient

func NewGCPManagedPrometheusClient() (Client, error)

NewGCPManagedPrometheusClient returns an HTTP client for talking to the Google Cloud Managed Service for Prometheus.

func NewInClusterPrometheusClient

func NewInClusterPrometheusClient(c clientset.Interface) Client

Jump to

Keyboard shortcuts

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