mirror of
https://github.com/Dokploy/dokploy
synced 2025-06-26 18:27:59 +00:00
refactor: update name
This commit is contained in:
@@ -131,11 +131,12 @@ export const ContainerPaidMonitoring = ({ appName, baseUrl, token }: Props) => {
|
||||
|
||||
return (
|
||||
<>
|
||||
<div className="flex items-center justify-between">
|
||||
<div className="flex items-center justify-between flex-wrap gap-2">
|
||||
<h2 className="text-2xl font-bold tracking-tight">
|
||||
Container Monitoring
|
||||
</h2>
|
||||
<div className="flex items-center gap-2">
|
||||
<div className="flex items-center gap-4 flex-wrap">
|
||||
<div>
|
||||
<span className="text-sm text-muted-foreground">Data points:</span>
|
||||
<Select
|
||||
value={dataPoints}
|
||||
@@ -154,6 +155,9 @@ export const ContainerPaidMonitoring = ({ appName, baseUrl, token }: Props) => {
|
||||
))}
|
||||
</SelectContent>
|
||||
</Select>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<span className="text-sm text-muted-foreground">
|
||||
Refresh interval:
|
||||
</span>
|
||||
@@ -176,9 +180,10 @@ export const ContainerPaidMonitoring = ({ appName, baseUrl, token }: Props) => {
|
||||
</Select>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{/* Stats Cards */}
|
||||
<div className="grid gap-4 md:grid-cols-4">
|
||||
<div className="grid gap-4 grid-cols-1 sm:grid-cols-2 xl:grid-cols-4">
|
||||
<Card className="p-6 bg-transparent">
|
||||
<div className="flex items-center gap-2">
|
||||
<Cpu className="h-4 w-4 text-muted-foreground" />
|
||||
@@ -236,13 +241,13 @@ export const ContainerPaidMonitoring = ({ appName, baseUrl, token }: Props) => {
|
||||
</div>
|
||||
<div>
|
||||
<h4 className="text-sm font-medium text-muted-foreground">Name</h4>
|
||||
<p className="mt-1">{metrics.Name}</p>
|
||||
<p className="mt-1 truncate">{metrics.Name}</p>
|
||||
</div>
|
||||
</div>
|
||||
</Card>
|
||||
|
||||
{/* Charts Grid */}
|
||||
<div className="grid gap-4 md:grid-cols-2 lg:grid-cols-2">
|
||||
<div className="grid gap-4 grid-cols-1 md:grid-cols-1 xl:grid-cols-2">
|
||||
<ContainerCPUChart data={historicalData} />
|
||||
<ContainerMemoryChart data={historicalData} />
|
||||
<ContainerBlockChart data={historicalData} />
|
||||
|
||||
@@ -151,10 +151,11 @@ export const ShowPaidMonitoring = ({
|
||||
}
|
||||
|
||||
return (
|
||||
<div className="space-y-4 pt-5 pb-10 w-full px-4">
|
||||
<div className="flex justify-between items-center">
|
||||
<div className="space-y-4 pt-5 pb-10 w-full md:px-4">
|
||||
<div className="flex items-center justify-between flex-wrap gap-2">
|
||||
<h2 className="text-2xl font-bold tracking-tight">System Monitoring</h2>
|
||||
<div className="flex items-center gap-2">
|
||||
<div className="flex items-center gap-4 flex-wrap">
|
||||
<div>
|
||||
<span className="text-sm text-muted-foreground">Data points:</span>
|
||||
<Select
|
||||
value={dataPoints}
|
||||
@@ -173,6 +174,9 @@ export const ShowPaidMonitoring = ({
|
||||
))}
|
||||
</SelectContent>
|
||||
</Select>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<span className="text-sm text-muted-foreground">
|
||||
Refresh interval:
|
||||
</span>
|
||||
@@ -195,9 +199,10 @@ export const ShowPaidMonitoring = ({
|
||||
</Select>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{/* Stats Cards */}
|
||||
<div className="grid gap-4 md:grid-cols-4">
|
||||
<div className="grid gap-4 grid-cols-1 sm:grid-cols-2 xl:grid-cols-4">
|
||||
<div className="rounded-lg border text-card-foreground shadow-sm p-6">
|
||||
<div className="flex items-center gap-2">
|
||||
<Clock className="h-4 w-4 text-muted-foreground" />
|
||||
@@ -260,7 +265,7 @@ export const ShowPaidMonitoring = ({
|
||||
</div>
|
||||
|
||||
{/* Charts Grid */}
|
||||
<div className="grid gap-4 md:grid-cols-2 lg:grid-cols-2">
|
||||
<div className="grid gap-4 grid-cols-1 md:grid-cols-1 xl:grid-cols-2">
|
||||
<CPUChart data={historicalData} />
|
||||
<MemoryChart data={historicalData} />
|
||||
<DiskChart data={metrics} />
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
import { findServerById } from "@dokploy/server/services/server";
|
||||
import type { ContainerCreateOptions } from "dockerode";
|
||||
import { IS_CLOUD } from "../constants";
|
||||
import { findAdminById } from "../services/admin";
|
||||
import { getDokployImageTag } from "../services/settings";
|
||||
import { pullImage, pullRemoteImage } from "../utils/docker/utils";
|
||||
import { execAsync, execAsyncRemote } from "../utils/process/execAsync";
|
||||
import { getRemoteDocker } from "../utils/servers/remote-docker";
|
||||
import { IS_CLOUD } from "../constants";
|
||||
|
||||
export const setupMonitoring = async (serverId: string) => {
|
||||
const server = await findServerById(serverId);
|
||||
|
||||
Reference in New Issue
Block a user