diff --git a/ threshold_check.py b/ threshold_check.py index 6592930..ae5d5c3 100644 --- a/ threshold_check.py +++ b/ threshold_check.py @@ -174,7 +174,7 @@ def run(self) -> None: logger.info(f"Using output directory: {output_dir}") checker = ThresholdChecker( - output_dir="output", + output_dir=output_dir, memory_threshold=350, # 500 MiB cpu_threshold=0.1, # 0.5 cores duration_threshold=10 # 30 seconds diff --git a/collect-metrics-job.yaml b/collect-metrics-job.yaml index 8f06e9d..1d3b277 100644 --- a/collect-metrics-job.yaml +++ b/collect-metrics-job.yaml @@ -36,6 +36,11 @@ data: echo "Cloning performance repository for scripts..." git clone "https://${DECODED_TOKEN}@github.com/armosec/perfornamce.git" /workspace cd /workspace + + # Add these debug lines + echo "Listing files in workspace directory:" + ls -la /workspace/ + echo "Current working directory: $(pwd)" echo "Cloning Logs repository (shallow clone)..." git clone --depth 1 "https://${DECODED_TOKEN}@github.com/armosec/Logs.git" /workspace/Logs