Get Server Metrics
Retrieve system metrics including CPU, memory, disk, and network usage for server monitoring.string
required
The URL endpoint for fetching metrics data
string
required
Bearer token for authentication
string
required
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:string
Current CPU usage percentage
string
CPU model name
number
Number of CPU cores
number
Number of physical CPU cores
number
CPU speed in GHz
string
Operating system name
string
Linux distribution name
string
Kernel version
string
System architecture (e.g., x64, arm64)
string
Memory usage percentage
string
Memory used in GB
string
Total memory available
number
System uptime in seconds
string
Disk space used
string
Total disk space
string
Network incoming traffic
string
Network outgoing traffic
string
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.string
required
The base URL endpoint for fetching container metrics
string
required
Bearer token for authentication
string
required
Name of the application/container to monitor
string
required
Number of data points to retrieve
Authentication
Requires Bearer token authentication.Response
Returns an array of container metric objects:string
Unique container identifier
string
Name of the container
string
Docker image used for the container
string
Labels associated with the container
string
Command running in the container
string
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
object
required
Monitoring configuration settings
object
required
Server-level monitoring configuration
number
required
Metrics refresh rate in seconds (minimum: 2)
number
required
Port for the monitoring service (minimum: 1)
string
required
Authentication token for the monitoring service
string
required
Callback URL for metrics delivery (must be valid URI)
number
required
Number of days to retain metrics data (minimum: 1)
string
required
Cron expression for scheduled metrics collection