prometheus

package
v0.4.2 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2020 License: MPL-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewClient

func NewClient(addr string, log zerolog.Logger) (metrics.Provider, error)

NewClient takes the base Prometheus API address and build the client for use in retrieving metric values.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

Client is a Prometheus metrics backend wrapper.

func (*Client) GetValue

func (c *Client) GetValue(query string) (*float64, error)

GetValue satisfies the GetValue function of the metrics.Provider interface.

Jump to

Keyboard shortcuts

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