add extra tag mesh config (#8376)

* add extra tag mesh config

* fix
This commit is contained in:
Pengyuan Bian 2020-10-28 10:33:41 -07:00 committed by GitHub
parent e8b3c27101
commit a204654559
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 18 additions and 0 deletions

View File

@ -139,6 +139,16 @@ the example application throughout this task.
sidecar.istio.io/extraStatTags: destination_port,request_host
{{< /text >}}
To enable extra tags mesh wide, you can add `extraStatTags` to your mesh config:
{{< text yaml >}}
meshConfig:
defaultConfig:
extraStatTags:
- destination_port
- request_host
{{< /text >}}
## Verify the results
Send traffic to the mesh. For the Bookinfo sample, visit `http://$GATEWAY_URL/productpage` in your web

View File

@ -87,6 +87,14 @@ spec:
sidecar.istio.io/extraStatTags: destination_port,request_host
ENDSNIP
! read -r -d '' snip_enable_custom_metrics_4 <<\ENDSNIP
meshConfig:
defaultConfig:
extraStatTags:
- destination_port
- request_host
ENDSNIP
snip_verify_the_results_1() {
curl "http://$GATEWAY_URL/productpage"
}