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
Map Discovery app-container to docker at API boundary
rcourtmanb7ce2b6cc017
diff --git a/frontend-modern/src/utils/__tests__/discoveryTarget.test.ts b/frontend-modern/src/utils/__tests__/discoveryTarget.test.tsindex f40a05d50d..58de2a4438 100644--- a/frontend-modern/src/utils/__tests__/discoveryTarget.test.ts+++ b/frontend-modern/src/utils/__tests__/discoveryTarget.test.ts@@ -4,6 +4,7 @@ import {getAgentDiscoveryResourceId,isAgentDiscoveryResourceType,isAppContainerDiscoveryResourceType,+ toDiscoveryAPIResourceType,} from '@/utils/discoveryTarget';describe('discoveryTarget utils', () => {@@ -22,6 +23,16 @@ describe('discoveryTarget utils', () => {expect(canonicalDiscoveryResourceType('pod')).toBe('pod');});+ it('translates frontend canonical types to discovery API vocabulary', () => {+ expect(toDiscoveryAPIResourceType('app-container')).toBe('docker');+ expect(toDiscoveryAPIResourceType('docker')).toBe('docker');+ expect(toDiscoveryAPIResourceType('pod')).toBe('k8s');+ expect(toDiscoveryAPIResourceType('k8s')).toBe('k8s');+ expect(toDiscoveryAPIResourceType('vm')).toBe('vm');+ expect(toDiscoveryAPIResourceType('system-container')).toBe('system-container');+ expect(toDiscoveryAPIResourceType('agent')).toBe('agent');+ });+it('prefers resourceId for agent-like discovery targets', () => {expect(getAgentDiscoveryResourceId({diff --git a/frontend-modern/src/utils/discoveryTarget.ts b/frontend-modern/src/utils/discoveryTarget.tsindex 4615db436d..ebe1e6a6e4 100644--- a/frontend-modern/src/utils/discoveryTarget.ts+++ b/frontend-modern/src/utils/discoveryTarget.ts@@ -21,6 +21,7 @@ export const toDiscoveryAPIResourceType = (resourceType: unknown): string | undeconst canonical = canonicalDiscoveryResourceType(resourceType);if (!canonical) return undefined;if (canonical === 'pod') return 'k8s';+ if (canonical === 'app-container') return 'docker';return canonical;};