randomize metric push time ()

This commit is contained in:
mmetc 2022-11-04 14:54:03 +01:00 committed by GitHub
parent 8aca00326d
commit f860a037b5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -6,6 +6,8 @@ test -x /usr/bin/cscli || exit 0
upgraded=$(/usr/bin/cscli --error hub upgrade)
if [ -n "$upgraded" ]; then
# splay initial metrics push
sleep $(seq 1 90 | shuf -n 1)
systemctl reload crowdsec
fi