This guide explains how to deploy SQL Auditor to various platforms.
The easiest way to run SQL Auditor locally with full monitoring:
docker-compose up --build- Frontend: http://localhost:5173
- Backend API: http://localhost:8000
- Prometheus: http://localhost:9090
- Grafana: http://localhost:3000 (Default login:
admin/admin)
SQL Auditor includes a render.yaml blueprint for one-click deployment.
- Fork this repository.
- Connect your GitHub account to Render.
- Click New -> Blueprint.
- Select your fork.
- Configure the
OPENAI_API_KEYenvironment variable. - Deploy!
- Install the Railway CLI.
- Run
railway login. - Run
railway link. - Run
railway up.
| Variable | Description | Default |
|---|---|---|
OPENAI_API_KEY |
Your OpenAI API Key | (Required) |
SQLAUDITOR_LOG_LEVEL |
Logging level (DEBUG, INFO, WARN, ERROR) | INFO |
DEFAULT_DIALECT |
Default SQL dialect (postgres, sqlite) | postgres |
SQLAUDITOR_API_KEY |
API Key for authenticating requests | (Generated) |
SQLAUDITOR_LLM_BUDGET_MONTHLY |
Monthly budget for LLM calls | 100.0 |
SQL Auditor exports Prometheus metrics at /metrics. In production, you should point your Prometheus instance to this endpoint.