Welcome to IQToolkit Analyzer!
For a quick overview, see the Project README.
# Install uv if not already installed
curl -LsSf https://astral.sh/uv/install.sh | sh
# Clone and setup
git clone https://github.com/iqtoolkit/slow-query-doctor.git
cd slow-query-doctor
make setup
git clone https://github.com/iqtoolkit/iqtoolkit-analyzer.git
cd iqtoolkit-analyzer
python -m venv .venv
source .venv/bin/activate
pip install -e .
If you want to use local LLMs, see Ollama Local Setup for installation and usage instructions.
See PostgreSQL Examples for all CLI and log analysis examples.
MongoDB analysis uses the built-in profiler to collect slow operation data in real-time:
# Connect to MongoDB
mongosh "mongodb://localhost:27017/myapp"
# Enable profiling for operations slower than 100ms
db.setProfilingLevel(2, {slowms: 100})
# Verify profiling is enabled
db.getProfilingStatus()
# Basic analysis with connection string
uv run python -m iqtoolkit_analyzer mongodb --connection-string "mongodb://localhost:27017" --output ./reports
# Advanced analysis with configuration file
cp docs/examples/.mongodb-config.yml.example .mongodb-config.yml
# Edit .mongodb-config.yml for your environment
uv run python -m iqtoolkit_analyzer mongodb --config .mongodb-config.yml --output ./reports
# Generate multiple report formats
uv run python -m iqtoolkit_analyzer mongodb \
--connection-string "mongodb://localhost:27017" \
--output ./reports \
--format json html markdown
mongodb_analysis.json)mongodb_report.html)mongodb_analysis.md)See MongoDB Guide for complete setup and usage instructions.
You can use a .iqtoolkit-analyzer.yml file to set defaults for log format, thresholds, and output. See Configuration.
If installing manually, ensure you have pyyaml, pandas, and tqdm for all features.