Sync #14778 #14876 and #14885 into Chinese (#14892)

This commit is contained in:
Wilson Wu 2024-04-17 11:40:40 +08:00 committed by GitHub
parent f93801b7eb
commit 5f064b1c29
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 7 additions and 2 deletions

View File

@ -110,7 +110,7 @@ $ istioctl install --set profile=ambient --skip-confirmation
{{< /tabset >}}
5) 使用以下命令确认已安装的组件:
6) 使用以下命令确认已安装的组件:
{{< tabset category-name="config-api" >}}

View File

@ -54,7 +54,7 @@ $ # The version of Istio to deploy
$ VERSION={{< istio_full_version >}}
$ # Import all Istio dashboards
$ for DASHBOARD in 7639 11829 7636 7630 7645 13277; do
$ REVISION="$(curl -s https://grafana.com/api/dashboards/${DASHBOARD}/revisions -s | jq ".items[] | select(.description | contains(\"${VERSION}$\")) | .revision")"
$ REVISION="$(curl -s https://grafana.com/api/dashboards/${DASHBOARD}/revisions -s | jq ".items[] | select(.description | contains(\"${VERSION}\")) | .revision" | tail -n 1)"
$ curl -s https://grafana.com/api/dashboards/${DASHBOARD}/revisions/${REVISION}/download > /tmp/dashboard.json
$ echo "Importing $(cat /tmp/dashboard.json | jq -r '.title') (revision ${REVISION}, id ${DASHBOARD})..."
$ curl -s -k -u "$GRAFANA_CRED" -XPOST \

View File

@ -110,6 +110,11 @@ $ kubectl apply -f @samples/open-telemetry/loki/otel.yaml@ -n istio-system
EOF
{{< /text >}}
{{< tip >}}
当连接失败时没有 `response.code` 属性。
在这种情况下,您应该使用 CEL 表达式 `!has(response.code) || response.code >= 500`
{{< /tip >}}
1. 通过 CEL 表达式设置默认的过滤访问日志
只有响应码大于等于 400 或请求转到 BlackHoleCluster 或 PassthroughCluster 时,