Documentation
¶
Index ¶
Constants ¶
View Source
const (
DefaultWaitTime string = "180"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ClusterMetrics ¶
type ClusterMetrics struct { CpuUnits string `json:"cpuUnits"` MemoryUnits string `json:"memoryUnits"` Pods []*PodCluster `json:"pods"` Nodes []*NodeCluster `json:"nodes"` Grouped []*PodCluster `json:"grouped"` }
type MetricsGathererImpl ¶
type MetricsGathererImpl struct { Index string Namespace string Interval time.Duration Kube *thales.KubeClient Elastic aristoteles.Client }
func NewMetricGathererImpl ¶
func NewMetricGathererImpl(env string) (*MetricsGathererImpl, error)
func (*MetricsGathererImpl) GatherMetricsOnTimerFull ¶
func (m *MetricsGathererImpl) GatherMetricsOnTimerFull() error
type NodeCluster ¶
type NodeCluster struct { NodeName string `json:"nodeName"` CpuRaw int64 `json:"cpuRaw"` MemoryRaw int64 `json:"memoryRaw"` CpuPercentage float64 `json:"cpuPercentage"` MemoryPercentage float64 `json:"memoryPercentage"` CpuHumanReadable string `json:"cpuHumanReadable"` MemoryHumanReadable string `json:"memoryHumanReadable"` CpuPercentageHumanReadable string `json:"cpuPercentageHumanReadable"` MemoryPercentageHumanReadable string `json:"memoryPercentageHumanReadable"` }
Click to show internal directories.
Click to hide internal directories.