Server Info

Get server statistics

Retrieves detailed statistics about the server's performance and resource usage. This endpoint provides comprehensive data about system resources including CPU, memory, disk usage, and database connections. The data comes from the server's Prometheus monitoring system and can be used for performance analysis, capacity planning, and troubleshooting.

Key Information Provided:

  • CPU usage and model information
  • Memory usage metrics
  • Disk space utilization
  • Database connections and performance metrics

NOTE: This endpoint requires the server to have the Prometheus capability enabled. If the capability is not enabled, the endpoint will return a 403 error.

get/servers/{id}/stats

Request

  • Base URL: https://api.cloudpepper.io
  • URL: https://api.cloudpepper.io/servers/{id}/stats
  • Auth: HTTP bearer

Response

Statistics retrieved successfully

cpuobject

CPU usage information

diskobject

Disk usage information

memobject

Memory usage information

db_backendsobject

Number of active database connections

db_maxconnsobject

Maximum allowed database connections

Changes

No recorded changes to this operation across all 1 revision of this API.