pod

package
v0.0.0-...-c19635f Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2024 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EvictPodByNode

func EvictPodByNode(deleteLabel *prometheus.Labels)

EvictPodByNode Evicts exporter metrics by Node

Types

type Collector

type Collector struct {
	WaitGroup *sync.WaitGroup
	// contains filtered or unexported fields
}

func NewCollector

func NewCollector(sampleInterval int64) Collector

func (Collector) SetMetrics

func (cr Collector) SetMetrics(podName string, podNamespace string, nodeName string, usedBytes float64, availableBytes float64, capacityBytes float64, volumes []Volume)

type Volume

type Volume struct {
	AvailableBytes int64  `json:"availableBytes"`
	CapacityBytes  int64  `json:"capacityBytes"`
	UsedBytes      int    `json:"usedBytes"`
	Name           string `json:"name"`
}

Jump to

Keyboard shortcuts

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