mirror of https://github.com/istio/istio.io.git
Fix Prometheus and Grafana svc not found during observability (#7878)
* Fix Prometheus and Grafana svc not found during observability * fix review comments
This commit is contained in:
parent
81489373e7
commit
d5446d7ef1
|
@ -18,8 +18,9 @@ the example application throughout this task.
|
||||||
|
|
||||||
## Before you begin
|
## Before you begin
|
||||||
|
|
||||||
[Install Istio](/docs/setup/) in your cluster and deploy an
|
* [Install Istio](/docs/setup) in your cluster.
|
||||||
application.
|
* Install the [Prometheus Addon](/docs/ops/integrations/prometheus/#option-1-quick-start).
|
||||||
|
* Deploy the [Bookinfo](/docs/examples/bookinfo/) application.
|
||||||
|
|
||||||
## Querying Istio metrics
|
## Querying Istio metrics
|
||||||
|
|
||||||
|
@ -76,13 +77,13 @@ You can also see the query results graphically by selecting the Graph tab undern
|
||||||
|
|
||||||
Other queries to try:
|
Other queries to try:
|
||||||
|
|
||||||
- Total count of all requests to the `productpage` service:
|
* Total count of all requests to the `productpage` service:
|
||||||
|
|
||||||
{{< text plain >}}
|
{{< text plain >}}
|
||||||
istio_requests_total{destination_service="productpage.default.svc.cluster.local"}
|
istio_requests_total{destination_service="productpage.default.svc.cluster.local"}
|
||||||
{{< /text >}}
|
{{< /text >}}
|
||||||
|
|
||||||
- Total count of all requests to `v3` of the `reviews` service:
|
* Total count of all requests to `v3` of the `reviews` service:
|
||||||
|
|
||||||
{{< text plain >}}
|
{{< text plain >}}
|
||||||
istio_requests_total{destination_service="reviews.default.svc.cluster.local", destination_version="v3"}
|
istio_requests_total{destination_service="reviews.default.svc.cluster.local", destination_version="v3"}
|
||||||
|
@ -90,7 +91,7 @@ Other queries to try:
|
||||||
|
|
||||||
This query returns the current total count of all requests to the v3 of the `reviews` service.
|
This query returns the current total count of all requests to the v3 of the `reviews` service.
|
||||||
|
|
||||||
- Rate of requests over the past 5 minutes to all instances of the `productpage` service:
|
* Rate of requests over the past 5 minutes to all instances of the `productpage` service:
|
||||||
|
|
||||||
{{< text plain >}}
|
{{< text plain >}}
|
||||||
rate(istio_requests_total{destination_service=~"productpage.*", response_code="200"}[5m])
|
rate(istio_requests_total{destination_service=~"productpage.*", response_code="200"}[5m])
|
||||||
|
@ -107,12 +108,12 @@ docs](https://prometheus.io/docs/querying/basics/).
|
||||||
|
|
||||||
## Cleanup
|
## Cleanup
|
||||||
|
|
||||||
- Remove any `istioctl` processes that may still be running using control-C or:
|
* Remove any `istioctl` processes that may still be running using control-C or:
|
||||||
|
|
||||||
{{< text bash >}}
|
{{< text bash >}}
|
||||||
$ killall istioctl
|
$ killall istioctl
|
||||||
{{< /text >}}
|
{{< /text >}}
|
||||||
|
|
||||||
- If you are not planning to explore any follow-on tasks, refer to the
|
* If you are not planning to explore any follow-on tasks, refer to the
|
||||||
[Bookinfo cleanup](/docs/examples/bookinfo/#cleanup) instructions
|
[Bookinfo cleanup](/docs/examples/bookinfo/#cleanup) instructions
|
||||||
to shutdown the application.
|
to shutdown the application.
|
||||||
|
|
|
@ -20,8 +20,9 @@ the example application throughout this task.
|
||||||
## Before you begin
|
## Before you begin
|
||||||
|
|
||||||
* [Install Istio](/docs/setup) in your cluster.
|
* [Install Istio](/docs/setup) in your cluster.
|
||||||
* Follow the [Grafana installation](/docs/ops/integrations/grafana/#configuration) documentation to deploy Grafana into your cluster.
|
* Install the [Grafana Addon](/docs/ops/integrations/grafana/#option-1-quick-start).
|
||||||
* Deploy [Bookinfo](/docs/examples/bookinfo/) application.
|
* Install the [Prometheus Addon](/docs/ops/integrations/prometheus/#option-1-quick-start).
|
||||||
|
* Deploy the [Bookinfo](/docs/examples/bookinfo/) application.
|
||||||
|
|
||||||
## Viewing the Istio dashboard
|
## Viewing the Istio dashboard
|
||||||
|
|
||||||
|
@ -31,8 +32,8 @@ the example application throughout this task.
|
||||||
|
|
||||||
{{< text bash >}}
|
{{< text bash >}}
|
||||||
$ kubectl -n istio-system get svc prometheus
|
$ kubectl -n istio-system get svc prometheus
|
||||||
NAME CLUSTER-IP EXTERNAL-IP PORT(S) AGE
|
NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE
|
||||||
prometheus 10.59.241.54 <none> 9090/TCP 2m
|
prometheus ClusterIP 10.100.250.202 <none> 9090/TCP 103s
|
||||||
{{< /text >}}
|
{{< /text >}}
|
||||||
|
|
||||||
1. Verify that the Grafana service is running in your cluster.
|
1. Verify that the Grafana service is running in your cluster.
|
||||||
|
@ -41,8 +42,8 @@ the example application throughout this task.
|
||||||
|
|
||||||
{{< text bash >}}
|
{{< text bash >}}
|
||||||
$ kubectl -n istio-system get svc grafana
|
$ kubectl -n istio-system get svc grafana
|
||||||
NAME CLUSTER-IP EXTERNAL-IP PORT(S) AGE
|
NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE
|
||||||
grafana 10.59.247.103 <none> 3000/TCP 2m
|
grafana ClusterIP 10.103.244.103 <none> 3000/TCP 2m25s
|
||||||
{{< /text >}}
|
{{< /text >}}
|
||||||
|
|
||||||
1. Open the Istio Dashboard via the Grafana UI.
|
1. Open the Istio Dashboard via the Grafana UI.
|
||||||
|
@ -50,7 +51,7 @@ the example application throughout this task.
|
||||||
In Kubernetes environments, execute the following command:
|
In Kubernetes environments, execute the following command:
|
||||||
|
|
||||||
{{< text bash >}}
|
{{< text bash >}}
|
||||||
$ kubectl -n istio-system port-forward $(kubectl -n istio-system get pod -l app=grafana -o jsonpath='{.items[0].metadata.name}') 3000:3000 &
|
$ istioctl dashboard grafana
|
||||||
{{< /text >}}
|
{{< /text >}}
|
||||||
|
|
||||||
Visit [http://localhost:3000/dashboard/db/istio-mesh-dashboard](http://localhost:3000/dashboard/db/istio-mesh-dashboard) in your web browser.
|
Visit [http://localhost:3000/dashboard/db/istio-mesh-dashboard](http://localhost:3000/dashboard/db/istio-mesh-dashboard) in your web browser.
|
||||||
|
|
Loading…
Reference in New Issue