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 contains all the information and methods to encapsulate communication with the Kubelet.
type Source ¶
type Source struct {
// contains filtered or unexported fields
}
Source pulls data from the controller source, and translates it for GCMv3.
func NewSource ¶
func NewSource(cfg *monitor.SourceConfig) (*Source, error)
NewSource creates a new Source for a kubelet.
func (*Source) GetTimeSeriesReq ¶
func (s *Source) GetTimeSeriesReq() (*v3.CreateTimeSeriesRequest, error)
GetTimeSeriesReq returns the GCM v3 TimeSeries data.
func (*Source) ProjectPath ¶
ProjectPath returns the project's path in a way Stackdriver understands.
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.
Click to show internal directories.
Click to hide internal directories.