diff --git a/apps/dokploy/components/dashboard/monitoring/servers/show-monitoring.tsx b/apps/dokploy/components/dashboard/monitoring/servers/show-monitoring.tsx index f58b40d7d..3fd36af48 100644 --- a/apps/dokploy/components/dashboard/monitoring/servers/show-monitoring.tsx +++ b/apps/dokploy/components/dashboard/monitoring/servers/show-monitoring.tsx @@ -129,11 +129,14 @@ export const ShowMonitoring = ({ useEffect(() => { fetchMetrics(); - const interval = setInterval(() => { - fetchMetrics(); - }, REFRESH_INTERVAL); + // Solo crear el intervalo si no es "all" + if (dataPoints !== "all") { + const interval = setInterval(() => { + fetchMetrics(); + }, REFRESH_INTERVAL); - return () => clearInterval(interval); + return () => clearInterval(interval); + } }, [dataPoints]); if (isLoading) {