Remove Prometheus file after 5 minutes; remove inotify dependency
This commit is contained in:
@@ -192,4 +192,11 @@ for repo in "${!REPOS[@]}"; do
|
||||
fi
|
||||
done
|
||||
|
||||
echo "All done; have a nice day!"
|
||||
echo "All done; have a nice day!"
|
||||
|
||||
## Once the script finishes, the .prom file will live on for 2 minutes before being deleted.
|
||||
#+ This allows Prometheus to pick up the alert, send out a notification, and move on with its life.
|
||||
(
|
||||
sleep 120
|
||||
rm $PROM_FILE
|
||||
) 2>1 >/dev/null &
|
||||
|
||||
Reference in New Issue
Block a user