mirror of https://github.com/istio/istio.io.git
parent
f93801b7eb
commit
5f064b1c29
|
|
@ -110,7 +110,7 @@ $ istioctl install --set profile=ambient --skip-confirmation
|
||||||
|
|
||||||
{{< /tabset >}}
|
{{< /tabset >}}
|
||||||
|
|
||||||
5) 使用以下命令确认已安装的组件:
|
6) 使用以下命令确认已安装的组件:
|
||||||
|
|
||||||
{{< tabset category-name="config-api" >}}
|
{{< tabset category-name="config-api" >}}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -54,7 +54,7 @@ $ # The version of Istio to deploy
|
||||||
$ VERSION={{< istio_full_version >}}
|
$ VERSION={{< istio_full_version >}}
|
||||||
$ # Import all Istio dashboards
|
$ # Import all Istio dashboards
|
||||||
$ for DASHBOARD in 7639 11829 7636 7630 7645 13277; do
|
$ 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
|
$ 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})..."
|
$ echo "Importing $(cat /tmp/dashboard.json | jq -r '.title') (revision ${REVISION}, id ${DASHBOARD})..."
|
||||||
$ curl -s -k -u "$GRAFANA_CRED" -XPOST \
|
$ curl -s -k -u "$GRAFANA_CRED" -XPOST \
|
||||||
|
|
|
||||||
|
|
@ -110,6 +110,11 @@ $ kubectl apply -f @samples/open-telemetry/loki/otel.yaml@ -n istio-system
|
||||||
EOF
|
EOF
|
||||||
{{< /text >}}
|
{{< /text >}}
|
||||||
|
|
||||||
|
{{< tip >}}
|
||||||
|
当连接失败时没有 `response.code` 属性。
|
||||||
|
在这种情况下,您应该使用 CEL 表达式 `!has(response.code) || response.code >= 500`。
|
||||||
|
{{< /tip >}}
|
||||||
|
|
||||||
1. 通过 CEL 表达式设置默认的过滤访问日志
|
1. 通过 CEL 表达式设置默认的过滤访问日志
|
||||||
|
|
||||||
只有响应码大于等于 400 或请求转到 BlackHoleCluster 或 PassthroughCluster 时,
|
只有响应码大于等于 400 或请求转到 BlackHoleCluster 或 PassthroughCluster 时,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue