File tree Expand file tree Collapse file tree 2 files changed +9
-9
lines changed Expand file tree Collapse file tree 2 files changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -211,21 +211,21 @@ istioctl get all
211211# https://github.com/rakyll/hey
212212hey -n 500 -c 10 -h2 http://api.dev.example-api.com
213213```
214+
214215## Access Tools Example
215216
216217``` bash
217218# Jaeger
218219kubectl port-forward -n istio-system $( kubectl get pod -n istio-system -l app=jaeger -o jsonpath=' {.items[0].metadata.name}' ) 16686:16686 &
219220
220221# Grafana
221- gcloud container clusters get-credentials go-srv-demo-cluster --region us-central1 --project go-srv-demo \
222- && kubectl port-forward --namespace istio-system $( kubectl get pod --namespace istio-system --selector=" app=grafana" --output jsonpath=' {.items[0].metadata.name}' ) 3000:3000
222+ kubectl port-forward -n istio-system $( kubectl get pod -n istio-system -l app=grafana -o jsonpath=' {.items[0].metadata.name}' ) 3000:3000 &
223223
224- # Prometheus
225- $ kubectl -n istio-system port-forward $( kubectl -n istio-system get pod -l app=prometheus -o jsonpath=' {.items[0].metadata.name}' ) 9090:9090 &
224+ # Prometheus
225+ kubectl -n istio-system port-forward $( kubectl -n istio-system get pod -l app=prometheus -o jsonpath=' {.items[0].metadata.name}' ) 9090:9090 &
226226
227- gcloud container clusters get-credentials go-srv-demo-cluster --region us-central1 --project go-srv-demo \
228- && kubectl port-forward --namespace istio-system $( kubectl get pod --namespace istio-system --selector= " app=prometheus " --output jsonpath=' {.items[0].metadata.name}' ) 9090:9090
227+ # Kiali
228+ kubectl -n istio-system port-forward $( kubectl -n istio-system get pod -l app=kiali -o jsonpath=' {.items[0].metadata.name}' ) 20001:20001 &
229229```
230230
231231Prometheus Query Examples
Original file line number Diff line number Diff line change @@ -8,13 +8,13 @@ services:
88 ports :
99 - 80:80
1010 service-a :
11- image : garystafford/go-srv-a:1.3 .0
11+ image : garystafford/go-srv-a:1.4 .0
1212 networks :
1313 - golang-demo
1414 ports :
1515 - 8000:80
1616 service-b :
17- image : garystafford/go-srv-b:1.3 .0
17+ image : garystafford/go-srv-b:1.4 .0
1818 networks :
1919 - golang-demo
2020 service-c :
@@ -30,7 +30,7 @@ services:
3030 environment :
3131 RABBITMQ_CONN : ' amqp://guest:guest@rabbitmq:5672/'
3232 service-e :
33- image : garystafford/go-srv-e:1.3 .0
33+ image : garystafford/go-srv-e:1.4 .0
3434 networks :
3535 - golang-demo
3636 service-f :
You can’t perform that action at this time.
0 commit comments