funnel
reference/Server API/Server/Metrics/Historical

Get historical server metrics

Returns time-series data for server-wide metrics over a specified time range

GET
/metrics/historical

Query Parameters

range?string

Time range (1h, 24h, 7d)

interval?string

Data interval (1m, 5m, 1h)

Response Body

curl -X GET "http://localhost:8080/api/metrics/historical?range=string&interval=string"
{
  "data": {
    "data_points": [
      {
        "active_connections": 0,
        "bytes_in": 0,
        "bytes_out": 0,
        "error_count": 0,
        "request_count": 0,
        "response_time_ms": 0,
        "timestamp": "string"
      }
    ],
    "interval": "1m",
    "time_range": "24h",
    "tunnel_id": "my-tunnel"
  },
  "error": "error message",
  "success": true
}
Last updated: August 8, 2025
by karol-broda