pub.chive.admin.getEndpointMetrics

chive.pub

Documentation

Get per-endpoint HTTP request metrics from Prometheus

main query

Get per-endpoint HTTP request metrics from Prometheus

Output

Encodingapplication/json
metrics array Required

Endpoint metric entries

Errors

AuthenticationRequired
AdminRequired
Try It

Requests are sent directly from your browser. Some servers may block requests due to CORS.

Base URL for XRPC calls (e.g., https://api.bsky.social)
View raw schema
{
  "type": "query",
  "errors": [
    {
      "name": "AuthenticationRequired"
    },
    {
      "name": "AdminRequired"
    }
  ],
  "output": {
    "schema": {
      "type": "object",
      "required": [
        "metrics"
      ],
      "properties": {
        "metrics": {
          "type": "array",
          "items": {
            "ref": "#endpointMetric",
            "type": "ref"
          },
          "description": "Endpoint metric entries"
        }
      }
    },
    "encoding": "application/json"
  },
  "parameters": {
    "type": "params",
    "properties": {}
  },
  "description": "Get per-endpoint HTTP request metrics from Prometheus"
}
endpointMetric object

HTTP endpoint performance metric

Properties

errorCount integer Required

Total error responses

errorRate integer Optional

Error rate in basis points (100 = 1%)

method string Required

HTTP method (GET, POST, etc.)

p50 integer Optional

50th percentile latency in microseconds

p95 integer Optional

95th percentile latency in microseconds

p99 integer Optional

99th percentile latency in microseconds

path string Required

Endpoint path

requestCount integer Required

Total requests

View raw schema
{
  "type": "object",
  "required": [
    "method",
    "path",
    "requestCount",
    "errorCount"
  ],
  "properties": {
    "p50": {
      "type": "integer",
      "description": "50th percentile latency in microseconds"
    },
    "p95": {
      "type": "integer",
      "description": "95th percentile latency in microseconds"
    },
    "p99": {
      "type": "integer",
      "description": "99th percentile latency in microseconds"
    },
    "path": {
      "type": "string",
      "description": "Endpoint path"
    },
    "method": {
      "type": "string",
      "description": "HTTP method (GET, POST, etc.)"
    },
    "errorRate": {
      "type": "integer",
      "description": "Error rate in basis points (100 = 1%)"
    },
    "errorCount": {
      "type": "integer",
      "description": "Total error responses"
    },
    "requestCount": {
      "type": "integer",
      "description": "Total requests"
    }
  },
  "description": "HTTP endpoint performance metric"
}

Lexicon Garden

@