SoulFire LogoSoulFire

Get server metrics

Returns server-level system metrics (CPU, memory, threads, GC, aggregate bots). Supports incremental fetching via the "since" parameter.

GET
/v1/server/metrics

Returns server-level system metrics (CPU, memory, threads, GC, aggregate bots). Supports incremental fetching via the "since" parameter.

Authorization

AuthorizationBearer <token>

Preferred API authentication. Use a JWT with the api audience.

In: header

Query Parameters

since?string

If set, only return snapshots taken after this timestamp. Used for incremental fetching to reduce payload size.

Response Body

application/json

application/json

application/json

application/json

curl -X GET "http://127.0.0.1:38765/v1/server/metrics"
{
  "snapshots": [
    {
      "timestamp": {
        "seconds": 0,
        "nanos": 0
      },
      "process_cpu_load": 0.1,
      "system_cpu_load": 0.1,
      "heap_used_bytes": 0,
      "heap_committed_bytes": 0,
      "heap_max_bytes": 0,
      "non_heap_used_bytes": 0,
      "thread_count": 0,
      "daemon_thread_count": 0,
      "gc_collection_count": 0,
      "gc_collection_time_ms": 0,
      "uptime_ms": 0,
      "available_processors": 0,
      "total_bots_online": 0,
      "total_bots_total": 0,
      "active_instances": 0
    }
  ]
}
{
  "code": 0,
  "grpc-code": "string",
  "message": "string",
  "stack-trace": "string",
  "details": [
    {}
  ]
}
{
  "code": 0,
  "grpc-code": "string",
  "message": "string",
  "stack-trace": "string",
  "details": [
    {}
  ]
}
{
  "code": 0,
  "grpc-code": "string",
  "message": "string",
  "stack-trace": "string",
  "details": [
    {}
  ]
}

How is this page?