Download OpenAPI specification:Download
Konnect endpoint for extracting and computing metrics
Post a query to the endpoint to retrieve aggregated metrics down to the minute. Data can be requested to group by any 2 dimensions, and any number of filter conditions.
| metrics required | Array of strings Items Enum: "request_count" "request_per_minute" "response_latency_p99" "response_latency_p95" "response_latency_p50" "response_latency_average" "upstream_latency_p99" "upstream_latency_p95" "upstream_latency_p50" "upstream_latency_average" "kong_latency_p99" "kong_latency_p95" "kong_latency_p50" "kong_latency_average" "response_size_p99" "response_size_p95" "response_size_p50" "request_size_p99" "request_size_p95" "request_size_p50" "request_size_average" "response_size_average" List of aggregated metrics to collect across the requested time span. |
| dimensions | Array of strings [ 0 .. 2 ] items Items Enum: "api_product" "api_product_version" "application" "consumer" "control_plane" "control_plane_group" "data_plane_node" "gateway_service" "route" "status_code" "status_code_grouped" "time" List of attributes or entity types to group by. |
Array of objects (ExploreFilter) A list of filters to apply to the query. | |
| granularity | string Enum: "minute" "hour" "day" "week" "trend" Force time grouping into buckets of the specified duration. Only has an effect if "time" is in the "dimensions" list. If "trend" is chosen, the time range covered by the query will be twice the specified time range, and the granularity will be set such that two time buckets are returned, one for the given time range and one for the same time range prior. For example: time range: last 24 hours granularity: trend will return 2 time buckets (assuming both have data):
Another example: time range: 2020-05-01 to 2020-05-15 granularity: trend will return 2 time buckets:
The granularity of the result may be coarser than requested. The finest allowed granularity depends on the query's time range: data farther in the past may have coarser granularity. The exact result granularity will be reported in the response If granularity is not specified and "time" is in the dimensions list, a default will be chosen based on the time range requested. |
any Default: {"type":"relative","time_range":"1h"} The time range to query. | |
| meta | object |
{- "time_range": {
- "type": "relative",
- "time_range": "24h",
- "tz": "EST"
}, - "dimensions": [
- "time",
- "gateway_service"
], - "filters": [
- {
- "type": "in",
- "dimension": "control_plane",
- "values": [
- "d5ac5d88-efed-4e10-9dfe-0b0a6646c219"
]
}
], - "granularity": "hour",
- "metrics": [
- "response_latency_p99",
- "response_latency_p95",
- "response_latency_p50"
]
}{- "data": [
- {
- "event": {
- "gateway_service": "d5ac5d88-efed-4e10-9dfe-0b0a6646c219:bf16907c-8673-4f9d-aa83-1f2ea9215055",
- "request_count": 1000,
- "response_latency_p99": 23
}, - "timestamp": "2024-01-16T00:00:00Z"
}
], - "meta": {
- "start_ms": 1705428000000,
- "end_ms": 1705429000000,
- "display": {
- "gateway_service": {
- "d5ac5d88-efed-4e10-9dfe-0b0a6646c219:bf16907c-8673-4f9d-aa83-111111111111": {
- "id": "d5ac5d88-efed-4e10-9dfe-0b0a6646c219:bf16907c-8673-4f9d-aa83-111111111111",
- "deleted": true,
- "name": "Gateway Service Alpha"
}, - "d5ac5d88-efed-4e10-9dfe-0b0a6646c219:bf16907c-8673-4f9d-aa83-1f2ea9215055": {
- "id": "d5ac5d88-efed-4e10-9dfe-0b0a6646c219:bf16907c-8673-4f9d-aa83-1f2ea9215055",
- "deleted": false,
- "name": "Gateway Service Beta"
}
}
}, - "metric_units": {
- "request_count": "cnt",
- "response_latency_p99": "ms"
}, - "granularity_ms": 60000,
- "truncated": false,
- "limit": 50,
- "query_id": "requested-query-id"
}
}