metrics

package
v1.0.10 Latest Latest
Warning

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

Go to latest
Published: Jul 11, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HostnicIpamAllocFailed

type HostnicIpamAllocFailed struct {
	Node  string
	Count float64
}

type HostnicIpamBlockFailed

type HostnicIpamBlockFailed struct {
	Node  string
	Count float64
}

type HostnicIpamFreeFromHostFailed

type HostnicIpamFreeFromHostFailed struct {
	Node  string
	Count float64
}

type HostnicIpamFreeFromPoolFailed

type HostnicIpamFreeFromPoolFailed struct {
	Node  string
	Count float64
}

type HostnicIpamNamespaceAllocator

type HostnicIpamNamespaceAllocator struct {
	Namespace string
	Node      string
	Count     float64
}

type HostnicIpamNamespaceTotal

type HostnicIpamNamespaceTotal struct {
	Namespace string
	Node      string
	Count     float64
}

type HostnicIpamNamespaceUnallocator

type HostnicIpamNamespaceUnallocator struct {
	Namespace string
	Node      string
	Count     float64
}

type HostnicIpamNotFound

type HostnicIpamNotFound struct {
	Node  string
	Count float64
}

type HostnicIpamPoolFailed

type HostnicIpamPoolFailed struct {
	Node  string
	Count float64
}

type HostnicIpamSubnetAllocator

type HostnicIpamSubnetAllocator struct {
	Subnet string
	Node   string
	Count  float64
}

type HostnicIpamSubnetTotal

type HostnicIpamSubnetTotal struct {
	Subnet string
	Node   string
	Count  float64
}

type HostnicIpamSubnetUnallocator

type HostnicIpamSubnetUnallocator struct {
	Subnet string
	Node   string
	Count  float64
}

type HostnicIpamVxnetAllocator

type HostnicIpamVxnetAllocator struct {
	Vxnet string
	Node  string
	Count float64
}

type HostnicIpamVxnetTotal

type HostnicIpamVxnetTotal struct {
	Vxnet string
	Node  string
	Count float64
}

type HostnicIpamVxnetUnallocator

type HostnicIpamVxnetUnallocator struct {
	Vxnet string
	Node  string
	Count float64
}

type HostnicMetrics

type HostnicMetrics struct {
	HostnicVxnetInfos                []HostnicVxnetInfo
	HostnicVxnetPodInfos             []HostnicVxnetPodInfo
	HostnicIpamVxnetAllocators       []HostnicIpamVxnetAllocator
	HostnicIpamVxnetUnallocators     []HostnicIpamVxnetUnallocator
	HostnicIpamVxnetTotals           []HostnicIpamVxnetTotal
	HostnicIpamSubnetAllocators      []HostnicIpamSubnetAllocator
	HostnicIpamSubnetUnallocators    []HostnicIpamSubnetUnallocator
	HostnicIpamSubnetTotals          []HostnicIpamSubnetTotal
	HostnicIpamNamespaceAllocators   []HostnicIpamNamespaceAllocator
	HostnicIpamNamespaceUnallocators []HostnicIpamNamespaceUnallocator
	HostnicIpamNamespaceTotals       []HostnicIpamNamespaceTotal
	HostnicIpamBlockFailed           HostnicIpamBlockFailed
	HostnicIpamPoolFailed            HostnicIpamPoolFailed
	HostnicIpamNotFound              HostnicIpamNotFound
	HostnicIpamAllocFailed           HostnicIpamAllocFailed
	HostnicIpamFreeFromPoolFailed    HostnicIpamFreeFromPoolFailed
	HostnicIpamFreeFromHostFailed    HostnicIpamFreeFromHostFailed
}

type HostnicMetricsManager

type HostnicMetricsManager struct {
	HostnicVxnetCount               *prometheus.Desc
	HostnicVxnetPodCount            *prometheus.Desc
	HostnicIpamVxnetAllocator       *prometheus.Desc
	HostnicIpamVxnetUnallocator     *prometheus.Desc
	HostnicIpamVxnetTotal           *prometheus.Desc
	HostnicIpamSubnetAllocator      *prometheus.Desc
	HostnicIpamSubnetUnallocator    *prometheus.Desc
	HostnicIpamSubnetTotal          *prometheus.Desc
	HostnicIpamNamespaceAllocator   *prometheus.Desc
	HostnicIpamNamespaceUnallocator *prometheus.Desc
	HostnicIpamNamespaceTotal       *prometheus.Desc
	HostnicIpamBlockFailed          *prometheus.Desc
	HostnicIpamPoolFailed           *prometheus.Desc
	HostnicIpamNotFound             *prometheus.Desc
	HostnicIpamAllocFailed          *prometheus.Desc
	HostnicIpamFreeFromPoolFailed   *prometheus.Desc
	HostnicIpamFreeFromHostFailed   *prometheus.Desc
	// contains filtered or unexported fields
}

func NewHostnicMetricsManager

func NewHostnicMetricsManager(kubeclient kubernetes.Interface, ipamclient ipam.IPAMClient, oddCount *OddPodCount) *HostnicMetricsManager

func (*HostnicMetricsManager) Collect

func (c *HostnicMetricsManager) Collect(ch chan<- prometheus.Metric)

func (*HostnicMetricsManager) Describe

func (c *HostnicMetricsManager) Describe(ch chan<- *prometheus.Desc)

func (*HostnicMetricsManager) GenerateMetrics

func (c *HostnicMetricsManager) GenerateMetrics() HostnicMetrics

type HostnicVxnetInfo

type HostnicVxnetInfo struct {
	Node  string
	Vxnet string
	Phase string
	Mac   string
}

type HostnicVxnetPodInfo

type HostnicVxnetPodInfo struct {
	Node      string
	Vxnet     string
	Namespace string
	Name      string
	Container string
	Ip        string
}

type OddPodCount

type OddPodCount struct {
	BlockFailedCount        float64
	PoolFailedCount         float64
	NotFoundCount           float64
	AllocFailedCount        float64
	FreeFromPoolFailedCount float64
	FreeFromHostFailedCount float64
}

Jump to

Keyboard shortcuts

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