File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed
content/zh/docs/tasks/observability/metrics/customize-metrics Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ Istio 可以生成各种仪表盘所使用的遥测数据,帮助您直观地
22
22
23
23
## 开始之前 {#before-you-begin}
24
24
25
- 在集群中[ 安装 Istio] ( /zh/docs/setup/ ) 并部署应用程序。
25
+ 在集群中[ 安装 Istio] ( /zh/docs/setup/ ) 并部署应用程序。
26
26
或者,您可以设置自定义统计作为 Istio 安装的一部分。
27
27
28
28
[ Bookinfo 示例] ( /zh/docs/examples/bookinfo/ ) 应用程序在此任务中用作示例应用程序。
@@ -83,10 +83,9 @@ $ kubectl exec "$(kubectl get pod -l app=productpage -o jsonpath='{.items[0].met
83
83
84
84
## 对值使用表达式 {#use-expressions-for-values}
85
85
86
- 指标配置中的值是常用表达式,这意味着您
87
- JSON 中的字符必须双引号(例如:"'string value'")。
88
- 与 Mixer 表达式语言不同,不支持 pipe(` | ` )运算符,但您
89
- 可以使用 ` has ` 或 ` in ` 操作符来模拟它,例如:
86
+ 指标配置中的值是常用表达式,这意味着 JSON 中的字符必须双引号(例如:"'string value'")。
87
+ 与 Mixer 表达式语言不同,不支持 pipe(` | ` )运算符,
88
+ 但您可以使用 ` has ` 或 ` in ` 操作符来模拟它,例如:
90
89
91
90
{{< text plain >}}
92
91
has(request.host) ? request.host : "unknown"
You can’t perform that action at this time.
0 commit comments