monitor

package
v0.0.0-...-f1f8778 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2024 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DevicesMonitored = prometheus.NewGauge(prometheus.GaugeOpts{
	Name: "devices_monitored",
	Help: "Total number of devices monitored",
})
View Source
var ErrNoCondition = errors.New("can't find device condition")

Functions

func CreateConfigMap

func CreateConfigMap(fs utils.FileSystem, devices []appv1alpha1.SerialDevice2) (*corev1.ConfigMap, error)

func CreateDaemonSet

func CreateDaemonSet(fs utils.FileSystem) (*appsv1.DaemonSet, error)

Types

type Monitor

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

func NewMonitor

func NewMonitor(
	clientSet client.Interface,
	clientsetKubeserial versioned.Interface,
	namespace string,
	nodeName string,
	fs utils.FileSystem,
) *Monitor

func (*Monitor) RunUpdateLoop

func (m *Monitor) RunUpdateLoop(ctx context.Context)

func (*Monitor) UpdateDeviceState

func (m *Monitor) UpdateDeviceState(ctx context.Context)

Jump to

Keyboard shortcuts

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