Real-time monitoring dashboard for Proxmox VE, PBS, Docker, Kubernetes, TrueNAS and vSphere. Self-hosted, with alerts for failed backups, full disks, unhealthy containers and offline nodes.
Go aialertsdashboarddockerdocker-monitoringgohomelabinfrastructure-monitoringkubernetesmonitoringmspproxmoxproxmox-backup-serverproxmox-mail-gatewayproxmox-veself-hostedtruenastypescriptvspherewebhooks
kubernetes(adapter): project pod QoS class into the unified resource
rcourtman9f52cf2a2d35
diff --git a/internal/unifiedresources/adapters.go b/internal/unifiedresources/adapters.goindex e35355a4de..75aadd020d 100644--- a/internal/unifiedresources/adapters.go+++ b/internal/unifiedresources/adapters.go@@ -2494,6 +2494,7 @@ func resourceFromKubernetesPod(cluster models.KubernetesCluster, pod models.KubePodReason: pod.Reason,PodMessage: pod.Message,PodContainers: cloneK8sPodContainers(pod.Containers),+ QoSClass: strings.TrimSpace(pod.QoSClass),UptimeSeconds: func() int64 {if pod.StartTime != nil {start := pod.StartTime.UTC()diff --git a/internal/unifiedresources/kubernetes_registry_test.go b/internal/unifiedresources/kubernetes_registry_test.goindex edfa444511..7b65b3ad7a 100644--- a/internal/unifiedresources/kubernetes_registry_test.go+++ b/internal/unifiedresources/kubernetes_registry_test.go@@ -41,6 +41,7 @@ func TestIngestSnapshotIncludesKubernetesHierarchy(t *testing.T) {Namespace: "default",NodeName: "worker-1",Phase: "Running",+ QoSClass: "Burstable",CreatedAt: now.Add(-20 * time.Minute),StartTime: &podStart,Containers: []models.KubernetesPodContainer{@@ -217,6 +218,9 @@ func TestIngestSnapshotIncludesKubernetesHierarchy(t *testing.T) {if podResource.Kubernetes == nil || podResource.Kubernetes.Namespace != "default" {t.Fatalf("expected pod namespace metadata, got %+v", podResource.Kubernetes)}+ if podResource.Kubernetes.QoSClass != "Burstable" {+ t.Fatalf("expected pod QoS class to be projected, got %+v", podResource.Kubernetes)+ }if podResource.Kubernetes.MetricCapabilities == nil {t.Fatalf("expected kubernetes metric capabilities on pod resource, got nil")}diff --git a/internal/unifiedresources/types.go b/internal/unifiedresources/types.goindex b79f1db65c..a8197184f2 100644--- a/internal/unifiedresources/types.go+++ b/internal/unifiedresources/types.go@@ -1549,6 +1549,7 @@ type K8sData struct {PodReason string `json:"podReason,omitempty"` // pod: status reasonPodMessage string `json:"podMessage,omitempty"` // pod: status messagePodContainers []K8sPodContainer `json:"podContainers,omitempty"` // pod: sub-containers+ QoSClass string `json:"qosClass,omitempty"` // pod: Guaranteed / Burstable / BestEffortUptimeSeconds int64 `json:"uptimeSeconds,omitempty"`Temperature *float64 `json:"temperature,omitempty"`Restarts int `json:"restarts,omitempty"`