Get Server Metrics
Retrieve system metrics including CPU, memory, disk, and network usage for server monitoring.The URL endpoint for fetching metrics data
Bearer token for authentication
Number of data points to retrieve (limits the result set)
Authentication
This endpoint requires authentication using a Bearer token in the Authorization header:Response
Returns an array of metric objects containing system performance data:Current CPU usage percentage
CPU model name
Number of CPU cores
Number of physical CPU cores
CPU speed in GHz
Operating system name
Linux distribution name
Kernel version
System architecture (e.g., x64, arm64)
Memory usage percentage
Memory used in GB
Total memory available
System uptime in seconds
Disk space used
Total disk space
Network incoming traffic
Network outgoing traffic
Timestamp of the metrics snapshot
Example Request
Example Response
Error Handling
The endpoint may return the following errors:- No monitoring data available: Monitoring service is not set up or no data has been collected yet
- Container not running: The monitoring container is not active
- Service not included: The service is not included in the monitoring configuration
Get Container Metrics
Retrieve metrics for specific Docker containers by application name.The base URL endpoint for fetching container metrics
Bearer token for authentication
Name of the application/container to monitor
Number of data points to retrieve
Authentication
Requires Bearer token authentication.Response
Returns an array of container metric objects:Unique container identifier
Name of the container
Docker image used for the container
Labels associated with the container
Command running in the container
Container creation timestamp
Example Request
Example Response
Setup Monitoring
Configure monitoring settings for servers with metrics collection and thresholds.This endpoint is available for admin users only and is disabled on Dokploy Cloud instances.
POST /admin.setupMonitoring
Monitoring configuration settings
Server-level monitoring configuration
Metrics refresh rate in seconds (minimum: 2)
Port for the monitoring service (minimum: 1)
Authentication token for the monitoring service
Callback URL for metrics delivery (must be valid URI)
Number of days to retain metrics data (minimum: 1)
Cron expression for scheduled metrics collection