Admin - Metrics

Get metrics statistics

Returns comprehensive metrics statistics including CPU, RAM, disk, and network statistics with average, minimum, and maximum values. Data is cached for 60 seconds.

get/api/metrics/stats

Response

Successful operation

Example response

{
  "cpu": {
    "average": 25.5,
    "minimum": 5.2,
    "maximum": 100
  },
  "cpu_cores": [
    {
      "average": 25.5,
      "core": "cpu0",
      "current": 15.2,
      "maximum": 100,
      "minimum": 2.5
    }
  ],
  "ram": {
    "average": 37.5,
    "minimum": 28.2,
    "maximum": 42.8
  },
  "disks": [
    {
      "average": 9.5,
      "avg_used_gb": 4.5,
      "current_free_gb": 36,
      "current_total_gb": 41,
      "current_used_gb": 5,
      "current_used_percentage": 12,
      "device": "/dev/sda1",
      "max_used_gb": 5,
      "maximum": 12,
      "minimum": 8,
      "mounted_on": "/"
    }
  ],
  "networks": [
    {
      "avg_rx_bytes": 1500000000,
      "avg_rx_packets": 5000000,
      "avg_tx_bytes": 1400000000,
      "avg_tx_packets": 4500000,
      "current_rx_bytes": 1800000000,
      "current_rx_packets": 6000000,
      "current_tx_bytes": 1700000000,
      "current_tx_packets": 5500000,
      "interface": "eth0",
      "max_rx_bytes": 2000000000,
      "max_rx_packets": 8000000,
      "max_tx_bytes": 1900000000,
      "max_tx_packets": 7000000
    }
  ]
}

Changes

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