prometheus

package
v0.0.0-...-1accfa1 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2022 License: Apache-2.0 Imports: 11 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 struct {
	// contains filtered or unexported fields
}

func NewClient

func NewClient(cfg Config) (*Client, error)

func (*Client) GetCPUByPod

func (c *Client) GetCPUByPod(pod string, namespace string) (model.Matrix, error)

func (*Client) GetCPUMetrics

func (c *Client) GetCPUMetrics() (model.Matrix, error)

type Config

type Config struct {
	URL                string
	Timeout            time.Duration
	Token              string
	InsecureSkipVerify bool
}

Jump to

Keyboard shortcuts

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