File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -148,14 +148,14 @@ services:
148
148
while true; do
149
149
echo 'Generating PostgreSQL reports...' &&
150
150
if [ -f /app/.pgwatch-config ] && grep -q '^api_key=' /app/.pgwatch-config; then
151
- API_KEY=$$(grep '^api_key=' /app/.pgwatch-config | cut -d'=' -f2 ) &&
151
+ API_KEY=$$(grep '^api_key=' /app/.pgwatch-config) &&
152
152
python postgres_reports.py --prometheus-url http://sink-prometheus:9090 --output /app/all_reports_$$(date +%Y%m%d_%H%M%S).json --token $$API_KEY --project postgres-ai-monitoring
153
153
else
154
154
echo 'No API key configured, generating reports without upload...' &&
155
155
python postgres_reports.py --prometheus-url http://sink-prometheus:9090 --output /app/all_reports_$$(date +%Y%m%d_%H%M%S).json --no-upload
156
156
fi &&
157
- echo 'Reports generated. Sleeping for 24 hours ...' &&
158
- sleep 86400
157
+ echo 'Reports generated. Sleeping for 5 minutes ...' &&
158
+ sleep 300
159
159
done
160
160
"
161
161
You can’t perform that action at this time.
0 commit comments