monitor

package
v0.0.0-...-7b39720 Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2020 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Float64Ptr

func Float64Ptr(f float64) *float64

Float64Ptr gives a pointer to a variable with the same value as f.

func Int64Ptr

func Int64Ptr(i int64) *int64

Int64Ptr gives a pointer to a variable with the same value as i.

func Once

func Once(src MetricsSource, gcm *v3.Service)

Once polls the backend and puts the data to the given service one time.

Types

type MetricsSource

type MetricsSource interface {
	GetTimeSeriesReq() (*v3.CreateTimeSeriesRequest, error)
	Name() string
	ProjectPath() string
}

MetricsSource is an object that provides kubernetes metrics in Stackdriver format, probably from a backend like the kubelet.

type SourceConfig

type SourceConfig struct {
	Zone, Project, Cluster, ClusterLocation, Host, Instance, InstanceID, SchemaPrefix string
	MonitoredResourceLabels                                                           map[string]string
	Port                                                                              uint
	Resolution                                                                        time.Duration
}

SourceConfig is the set of data required to configure a kubernetes data source (e.g., kubelet or kube-controller).

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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