This Bash script automates the collection of Kubernetes and Weaviate metrics, stores the results in an outputs directory, and packages them into a ZIP archive.
Prerequisites
- Bash shell
- Python 3 installed
- Permissions to read Kubernetes resources and pod logs
Before running the script, install the required Python packages:
pip install -r requriements.txt
Please rename .env.example to .env and add your environment variables.
./run_scripts.sh
Output
outputs/
directory with all collected metrics in separate files.- Compressed ZIP file (Default ZIP file:
k8s-weaviate-metrics.zip
) containing all collected metrics. - If you wish to have a different ZIP file name, please edit line #9 in run_scripts.sh before running it.
ZIP_NAME="your-zip-file-name.zip"