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.
This commit is contained in:
Sofia Papagiannaki 2019-07-17 09:49:33 +03:00 committed by GitHub
parent d9f01cb822
commit 18d999f1bc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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
}