Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Float64Ptr ¶
Float64Ptr gives a pointer to a variable with the same value as f.
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).
Click to show internal directories.
Click to hide internal directories.