We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 05db351 + ed64c2d commit 49fac4bCopy full SHA for 49fac4b
scripts/get_grafana_dashboards.sh
@@ -3,5 +3,7 @@
3
# https://istio.io/latest/docs/ops/integrations/grafana/#option-1-quick-start
4
for DASHBOARD in 7639 11829 7636 7630 7642 7645; do
5
REVISION="$(curl -s https://grafana.com/api/dashboards/${DASHBOARD}/revisions -s | jq ".items[] | select(.description | endswith(\"${ISTIO_VERSION}\")) | .revision")"
6
- curl -s https://grafana.com/api/dashboards/${DASHBOARD}/revisions/${REVISION}/download > /usr/local/app/dashboards/${DASHBOARD}.json
+if [[ $REVISION =~ ^[0-9]+$ ]]; then
7
+ curl -s https://grafana.com/api/dashboards/${DASHBOARD}/revisions/${REVISION}/download > /usr/local/app/dashboards/${DASHBOARD}.json
8
+fi
9
done
0 commit comments