tragedy

package
v0.0.0-...-d1f56d7 Latest Latest
Warning

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

Go to latest
Published: Dec 23, 2024 License: MIT Imports: 16 Imported by: 0

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"`
}

type PodCluster

type PodCluster struct {
	Name                string `json:"name"`
	CpuRaw              int64  `json:"cpuRaw"`
	MemoryRaw           int64  `json:"memoryRaw"`
	CpuHumanReadable    string `json:"cpuHumanReadable"`
	MemoryHumanReadable string `json:"memoryHumanReadable"`
}

Jump to

Keyboard shortcuts

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