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
Target Docker Discovery by container id, not workload hash
rcourtman25ae258bf4db
diff --git a/frontend-modern/src/components/Workloads/__tests__/workloadTopology.test.ts b/frontend-modern/src/components/Workloads/__tests__/workloadTopology.test.tsindex 286c6a4ee1..821554cf93 100644--- a/frontend-modern/src/components/Workloads/__tests__/workloadTopology.test.ts+++ b/frontend-modern/src/components/Workloads/__tests__/workloadTopology.test.ts@@ -221,9 +221,7 @@ describe('workloadTopology', () => {});expect(getDiscoveryHostIdForWorkload(docker)).toBe('docker-host-1');- expect(getDiscoveryResourceIdForWorkload(docker)).toBe(- 'app-container:docker-host-1:container-abc123',- );+ expect(getDiscoveryResourceIdForWorkload(docker)).toBe('container-abc123');expect(getDiscoveryHostIdForWorkload(truenas)).toBe('');expect(getDiscoveryResourceIdForWorkload(truenas)).toBe('');expect(getDiscoveryHostIdForWorkload(truenasWithExplicitDiscovery)).toBe('truenas-helper');diff --git a/frontend-modern/src/utils/__tests__/workloads.test.ts b/frontend-modern/src/utils/__tests__/workloads.test.tsindex 11e70696e0..640d0c1825 100644--- a/frontend-modern/src/utils/__tests__/workloads.test.ts+++ b/frontend-modern/src/utils/__tests__/workloads.test.ts@@ -308,6 +308,7 @@ describe('getDiscoveryResourceTypeForWorkload', () => {type: 'app-container',platformType: 'docker',dockerHostId: 'docker-host-1',+ containerId: 'container-grafana-abc',id: 'app-container:docker-host-1:grafana',};expect(getDiscoveryResourceTypeForWorkload(guest)).toBe('app-container');diff --git a/frontend-modern/src/utils/workloads.ts b/frontend-modern/src/utils/workloads.tsindex 6a32ed56f3..8f52263166 100644--- a/frontend-modern/src/utils/workloads.ts+++ b/frontend-modern/src/utils/workloads.ts@@ -204,7 +204,10 @@ export const resolveDiscoveryTargetForWorkload = (if (type === 'app-container') {if (!isDockerManagedAppContainer(guest)) return null;const agentId = (guest.dockerHostId || '').trim();- const resourceId = (guest.id || '').trim();+ // Discovery shells out to `docker exec <id> ...` on the agent host, so we+ // need the Docker-native container id (or name), not the synthetic+ // canonical workload id used for UI routing.+ const resourceId = (guest.containerId || '').trim();return agentId && resourceId ? { resourceType: 'app-container', agentId, resourceId } : null;}if (type === 'pod') {