From 9616e30b368c99bdc2550314851961dd34ad08a5 Mon Sep 17 00:00:00 2001 From: traky Date: Wed, 19 Jun 2024 18:49:08 +0800 Subject: [PATCH 1/2] add prefer name to apisix cluster config spec --- docs/en/latest/references/apisix_cluster_config_v2.md | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/en/latest/references/apisix_cluster_config_v2.md b/docs/en/latest/references/apisix_cluster_config_v2.md index 1006f52169..cd8de4afdc 100644 --- a/docs/en/latest/references/apisix_cluster_config_v2.md +++ b/docs/en/latest/references/apisix_cluster_config_v2.md @@ -42,3 +42,4 @@ See the [definition](https://github.com/apache/apisix-ingress-controller/blob/ma | admin | object | Admin configurations. | | admin.baseURL | string | Base URL of the APISIX cluster. | | admin.AdminKey | string | Admin key to authenticate with APISIX cluster. | +| prefer_name | boolean | When set to `true`, prints Route/Service name instead of their ID in Prometheus metrics. | From 2beedb93cfac469b5994d34d80d0eb07c40d8f02 Mon Sep 17 00:00:00 2001 From: traky Date: Wed, 19 Jun 2024 23:07:33 +0800 Subject: [PATCH 2/2] correct attribute --- docs/en/latest/references/apisix_cluster_config_v2.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/en/latest/references/apisix_cluster_config_v2.md b/docs/en/latest/references/apisix_cluster_config_v2.md index cd8de4afdc..06ea52c0cb 100644 --- a/docs/en/latest/references/apisix_cluster_config_v2.md +++ b/docs/en/latest/references/apisix_cluster_config_v2.md @@ -36,10 +36,10 @@ See the [definition](https://github.com/apache/apisix-ingress-controller/blob/ma | monitoring | object | Monitoring configurations. | | monitoring.prometheus | object | Prometheus configurations. | | monitoring.prometheus.enable | boolean | When set to `true`, enables Prometheus. | +| monitoring.prometheus.prefer_name | boolean | When set to `true`, prints Route/Service name instead of their ID in Prometheus metrics. | | monitoring.skywalking | object | Apache SkyWalking configurations. | | monitoring.skywalking.enable | boolean | When set to `true`, enables SkyWalking. | | monitoring.skywalking.sampleRatio | number | Sample ratio for spans. Should be in `[0, 1]`. | | admin | object | Admin configurations. | | admin.baseURL | string | Base URL of the APISIX cluster. | | admin.AdminKey | string | Admin key to authenticate with APISIX cluster. | -| prefer_name | boolean | When set to `true`, prints Route/Service name instead of their ID in Prometheus metrics. |