mirror of
https://github.com/grafana/grafana.git
synced 2024-12-30 10:47:30 -06:00
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:
parent
d9f01cb822
commit
18d999f1bc
@ -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
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user