Commit 18d999f1 by Sofia Papagiannaki Committed by GitHub

Fix provision alerts generation script (#18145)

The script tries to delete previously existing alerts
but it used to fail if there were too many of them.
parent d9f01cb8
......@@ -101,7 +101,7 @@ provision() {
requiresJsonnet
rm -rf grafana/provisioning/dashboards/alerts/alert-*.json
find grafana/provisioning/dashboards/alerts -maxdepth 1 -name 'alert*.json' -delete
jsonnet -m grafana/provisioning/dashboards/alerts grafana/provisioning/alerts.jsonnet --ext-code alerts=$alerts --ext-code condition=$condition
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment