Skip to content

Commit 70d4508

Browse files
authored
docs: add missing route label to prometheus latency metric (#11743)
1 parent 30d5eb0 commit 70d4508

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

docs/en/latest/plugins/prometheus.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -257,6 +257,7 @@ The following metrics are exported by the `prometheus` Plugin:
257257
| Name | Description |
258258
|----------|-------------------------------------------------------------------------------------------------------------------------------------|
259259
| type | Value can be one of `apisix`, `upstream`, or `request`. This translates to latency caused by APISIX, Upstream, or both (their sum). |
260+
| route | `route_id` of the matched Route with request. Defaults to an empty string if the Routes don't match. |
260261
| service | `service_id` of the Route matching the request. If the Route does not have a `service_id` configured, it defaults to `$host`. |
261262
| consumer | `consumer_name` of the Consumer matching the request. Defaults to an empty string if it does not match. |
262263
| node | IP address of the Upstream node. |

docs/zh/latest/plugins/prometheus.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -231,6 +231,7 @@ scrape_configs:
231231
| 名称 | 描述 |
232232
| -------------| --------------------------------------------------------------------------------------- |
233233
| type | 该值可以是 `apisix``upstream``request`,分别表示耗时的来源是 APISIX、上游以及两者总和。 |
234+
| route | 与请求匹配的路由的 `route_id`,如果未匹配,则默认为空字符串。 |
234235
| service | 与请求匹配的路由 的 `service_id`。当路由缺少 `service_id` 时,则默认为 `$host`|
235236
| consumer | 与请求匹配的消费者的 `consumer_name`。未匹配,则默认为空字符串。 |
236237
| node | 上游节点的 IP 地址。 |

0 commit comments

Comments
 (0)