Kong · Schema

LLMMetrics

List of aggregated metrics to collect across the requested time span.

API GatewayAI GatewayAI ConnectivityAgent GatewayEvent GatewayMCP RegistryService MeshLLMKafkaKonnectOpen Source
View JSON Schema on GitHub

JSON Schema

kong-llmmetrics-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/LLMMetrics",
  "title": "LLMMetrics",
  "description": "List of aggregated metrics to collect across the requested time span.",
  "type": "array",
  "items": {
    "type": "string",
    "enum": [
      "total_tokens",
      "prompt_tokens",
      "completion_tokens",
      "ai_request_count",
      "cost",
      "llm_cache_embeddings_latency_average",
      "llm_cache_fetch_latency_average",
      "llm_latency_average",
      "llm_embeddings_tokens",
      "llm_embeddings_cost"
    ],
    "x-speakeasy-unknown-values": "allow"
  },
  "default": [
    "ai_request_count"
  ]
}