monitor

package
v0.0.0-...-041fa0a Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2016 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type KubeletClient

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

KubeletClient contains all the information and methods to encapsulate communication with the Kubelet.

func NewKubeletClient

func NewKubeletClient(host string, port uint, client *http.Client) (*KubeletClient, error)

NewKubeletClient returns a new KubeletClient.

func (*KubeletClient) GetSummary

func (k *KubeletClient) GetSummary() (*stats.Summary, error)

GetSummary gets the kubelet's Summary metrics.

type Translator

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

Translator contains the required information to perform translations from kubelet summarys to GCM's GKE metrics.

func NewTranslator

func NewTranslator(zone, project, cluster, instanceID string, resolution time.Duration) *Translator

NewTranslator creates a new Translator with the given fields.

func (*Translator) Translate

func (t *Translator) Translate(summary *stats.Summary) (*v3.CreateTimeSeriesRequest, error)

Translate translates a summary to its TimeSeries.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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