kubernetes

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2019 License: MIT Imports: 13 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
}

Client provides methods to get all required metrics from Kubernetes

func NewClient

func NewClient(opts *options.Options) (*Client, error)

NewClient creates a new client to get data from kubernetes masters

func (*Client) IsHealthy

func (c *Client) IsHealthy() bool

IsHealthy returns whether the kubernetes client is able to get a list of all pods

func (*Client) NodeList

func (c *Client) NodeList() (*corev1.NodeList, error)

NodeList returns a list of all known nodes in a kubernetes cluster

func (*Client) NodeMetricses

func (c *Client) NodeMetricses() (*v1beta1.NodeMetricsList, error)

NodeMetricses returns all nodes' usage metrics

func (*Client) PodList

func (c *Client) PodList() (*corev1.PodList, error)

PodList returns a list of all known pods in a kubernetes cluster

func (*Client) PodMetricses

func (c *Client) PodMetricses() (*v1beta1.PodMetricsList, error)

PodMetricses returns all pods' usage metrics

Jump to

Keyboard shortcuts

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