monitor

package
v0.0.0-...-6cfc1b2 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ResyncPeriod       = 1 * time.Minute
	Interval           = 5
	KubernetesAPIQPS   = 80.0
	KubernetesAPIBurst = 60
)

Variables

This section is empty.

Functions

This section is empty.

Types

type PodMonitor

type PodMonitor struct {
	// contains filtered or unexported fields
}

func NewPodMonitor

func NewPodMonitor(namespaces []string) (*PodMonitor, error)

func (*PodMonitor) GetPodNamespaceByIP

func (pm *PodMonitor) GetPodNamespaceByIP(ip string) string

func (*PodMonitor) GetPodsIps

func (pm *PodMonitor) GetPodsIps() []string

func (*PodMonitor) IsMonitoredNamespace

func (pm *PodMonitor) IsMonitoredNamespace(ns string) bool

func (*PodMonitor) Start

func (pm *PodMonitor) Start(ctx context.Context)

Jump to

Keyboard shortcuts

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