Documentation
¶
Index ¶
- func Close(ctx context.Context, nu supbnervous.Controller, clusterMeta *clusters.Cluster, ...)
- func Init(ctx context.Context, nu supbnervous.Controller, clusterMeta *clusters.Cluster, ...)
- func SimpleStrategy(ctx context.Context, nu supbnervous.Controller, clusterMeta *clusters.Cluster, ...)
- type CollectorMetrics
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Close ¶
func Close(ctx context.Context, nu supbnervous.Controller, clusterMeta *clusters.Cluster, outPut chan<- *clusters.ClusterRes)
func Init ¶
func Init(ctx context.Context, nu supbnervous.Controller, clusterMeta *clusters.Cluster, outPut chan<- *clusters.ClusterRes)
func SimpleStrategy ¶
func SimpleStrategy(ctx context.Context, nu supbnervous.Controller, clusterMeta *clusters.Cluster, outPut chan<- *clusters.ClusterRes)
the policy function maybe reboot automatically, because of the control meta change
Types ¶
type CollectorMetrics ¶
type CollectorMetrics struct {
Guid string `json:"guid"`
Name string `json:"name"`
ID string `json:"id"`
CPUPercentage float64 `json:"cpuPercentage"`
Memory float64 `json:"memory"`
MemoryPercentage float64 `json:"memoryPercentage"`
MemoryLimit float64 `json:"memoryLimit"`
NetworkRx float64 `json:"networkRx"`
NetworkTx float64 `json:"networkTx"`
BlockRead float64 `json:"blockRead"`
BlockWrite float64 `json:"blockWrite"`
PidsCurrent uint64 `json:"pidsCurrent"`
Timestamp time.Time `json:"timestamp"`
}
Click to show internal directories.
Click to hide internal directories.