Fix grafana dashboard URLS after grafana update (#10349)

This commit is contained in:
Eric Van Norman 2021-09-16 12:26:22 -05:00 committed by GitHub
parent 217e9046f3
commit c5384c98ff
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 9 deletions

View File

@ -54,7 +54,7 @@ the example application throughout this task.
$ istioctl dashboard grafana $ 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/d/G8wLrJIZk/istio-mesh-dashboard](http://localhost:3000/d/G8wLrJIZk/istio-mesh-dashboard) in your web browser.
The Istio Dashboard will look similar to: The Istio Dashboard will look similar to:
@ -85,7 +85,7 @@ the example application throughout this task.
1. Visualize Service Dashboards. 1. Visualize Service Dashboards.
From the Grafana dashboard's left hand corner navigation menu, you can navigate to Istio Service Dashboard or visit From the Grafana dashboard's left hand corner navigation menu, you can navigate to Istio Service Dashboard or visit
[http://localhost:3000/dashboard/db/istio-service-dashboard](http://localhost:3000/dashboard/db/istio-service-dashboard) in your web browser. [http://localhost:3000/d/LJ_uJAvmk/istio-service-dashboard](http://localhost:3000/d/LJ_uJAvmk/istio-service-dashboard) in your web browser.
{{< tip >}} {{< tip >}}
You may need to select a service in the Service dropdown. You may need to select a service in the Service dropdown.
@ -101,7 +101,7 @@ the example application throughout this task.
1. Visualize Workload Dashboards. 1. Visualize Workload Dashboards.
From the Grafana dashboard's left hand corner navigation menu, you can navigate to Istio Workload Dashboard or visit From the Grafana dashboard's left hand corner navigation menu, you can navigate to Istio Workload Dashboard or visit
[http://localhost:3000/dashboard/db/istio-workload-dashboard](http://localhost:3000/dashboard/db/istio-workload-dashboard) in your web browser. [http://localhost:3000/d/UbsSZTDik/istio-workload-dashboard](http://localhost:3000/d/UbsSZTDik/istio-workload-dashboard) in your web browser.
The Istio Workload Dashboard will look similar to: The Istio Workload Dashboard will look similar to:

View File

@ -43,15 +43,15 @@ snip_viewing_the_istio_dashboard_3 &
# For verification, we only check if the dashboards are accessible, but not its actual contents # For verification, we only check if the dashboards are accessible, but not its actual contents
# TODO: Is it worth checking API calls and output for Grafana case? # TODO: Is it worth checking API calls and output for Grafana case?
function access_grafana_istio_mesh_dashboard() { function access_grafana_istio_mesh_dashboard() {
curl -L -s -o /dev/null -w '%{http_code}' "http://localhost:3000/dashboard/db/istio-mesh-dashboard" curl -L -s -o /dev/null -w '%{http_code}' "http://localhost:3000/d/G8wLrJIZk/istio-mesh-dashboard"
} }
function access_grafana_istio_service_dashboard() { function access_grafana_istio_service_dashboard() {
curl -L -s -o /dev/null -w '%{http_code}' "http://localhost:3000/dashboard/db/istio-service-dashboard" curl -L -s -o /dev/null -w '%{http_code}' "http://localhost:3000/d/LJ_uJAvmk/istio-service-dashboard"
} }
function access_grafana_istio_workload_dashboard() { function access_grafana_istio_workload_dashboard() {
curl -L -s -o /dev/null -w '%{http_code}' "http://localhost:3000/dashboard/db/istio-workload-dashboard" curl -L -s -o /dev/null -w '%{http_code}' "http://localhost:3000/d/UbsSZTDik/istio-workload-dashboard"
} }
# Grafana calls this behind the scenes. It sends a query to prometheus # Grafana calls this behind the scenes. It sends a query to prometheus