Read server data

Changed on
get/api/v1/metrics

Request

  • Base URL
    http://localhost:59232
  • URL
    http://localhost:59232/api/v1/metrics
  • Auth
    type (a scheme the document does not define) and scheme (a scheme the document does not define) and bearerFormat (a scheme the document does not define)

Response

OK

Example response

{
  "data": {
    "cpu": {
      "physical_core": 4,
      "logical_core": 8,
      "frequency": 2500,
      "free_percent": 0.5,
      "usage_percent": 0.5
    },
    "memory": {
      "total_bytes": 1351533568,
      "available_bytes": 351533568,
      "used_bytes": 1000000000,
      "usage_percent": 0.2601
    },
    "disk": [
      {
        "device": "/dev/sda1",
        "mountpoint": "/home",
        "total_bytes": 1099511627776,
        "free_bytes": 549755813888,
        "used_bytes": 549755813888,
        "usage_percent": 50,
        "total_inodes": 1000000,
        "free_inodes": 500000,
        "used_inodes": 500000,
        "inodes_usage_percent": 50,
        "read_bytes": 1024000,
        "write_bytes": 512000,
        "read_time": 1000,
        "write_time": 500
      }
    ],
    "host": {
      "os": "linux",
      "platform": "debian",
      "kernel_version": "5.4.0-42-generic"
    },
    "net": [
      {
        "name": "eth0",
        "bytes_sent": 1024,
        "bytes_recv": 2048,
        "packets_sent": 100,
        "packets_recv": 200
      }
    ]
  },
  "errors": [
    {
      "metric": [
        "cpu.temperature"
      ]
    }
  ]
}

Changes

    • info

      added the optional property /// to the response with the status

    • info

      added the optional property /// to the response with the status

    • warning

      removed the optional property // from the response with the status

    • warning

      removed the optional property // from the response with the status

    • info

      added the optional property // to the response with the status

    • info

      added the optional property // to the response with the status