Skip to content

🚀 LLM Observability Platform - Production Deployment Suite

Stop paying thousands of dollars to SaaS observability vendors. Claim complete data sovereignty, eliminate external telemetry leaks, and deploy a hardened 13-service observability pipeline in minutes.

🌐 Interactive Frontend Demo (UI Preview): https://llm-obs-web-app-9664.web.app | Direct Cloud Run Service: https://web-app-prod-4aq3kyjfra-el.a.run.app ⚠️ Note: This is an interactive frontend demonstration running with synthetic client state. Real telemetry ingestion, traces persistence, evaluation workers, and live analytics require deploying the complete 13-service backend infrastructure stack (ClickHouse, AlloyDB/PostgreSQL, Redis, Kafka, and Temporal).

The LLM Observability Platform Deployment Suite is a unified, production-grade, self-hosted infrastructure orchestrator. Whether you are running a lightweight proof-of-concept on a local VM or scaling high-throughput LLM workloads across multi-cloud clusters, this suite provides robust, automated configurations to manage, secure, and monitor your pipelines with zero-lock-in.


🏆 Key Architectural Benefits

  • 🔒 Hardened Zero-Trust Security: Pre-configured Kubernetes NetworkPolicies and Ansible UFW firewalls isolate stateful data tiers (Postgres, ClickHouse, Redis) from public networks by default.
  • ⚡ Automated Schema Migrations: Zero-overhead database initialization. Containerized initialization jobs apply SQL schemas across Postgres and ClickHouse databases sequentially before core APIs start.
  • 💾 Automatic Daily Backups: Built-in automated cron generators. Installs system crontabs for Docker Compose or CronJobs in Kubernetes to backup and archive data at midnight.
  • 📈 Multi-Cloud Scalability: Provision enterprise-ready infra on AWS, GCP, and Azure using structured, cloud-specific Terraform subnets.

💻 Hardware Sizing Matrix

Choose the hardware allocation matching your operations load:

Environment Tier Target Load Minimum CPU Minimum RAM Storage Cloud Recommendations
💡 Local Dev / VM Testing / Prototyping 4 vCPUs 12 GB 30 GB SSD Local Machine / Sandbox VM
🚀 Production High-Throughput 8 vCPUs 32 GB 100 GB+ SSD 3x Nodes (AWS t3.large, GCP e2-standard-4, Azure Standard_D4s_v5)

⚡ 1-Click Launch & Infrastructure Management

Manage all infrastructure services directly from the project root (/home/btpl-lap-22/live/llm-observability-platform):

🛠️ Infrastructure Management Commands (manage.sh)

# Start all infrastructure services (runs pre-flight verification & cert generation)
./packages/llm-obs-infra/scripts/manage.sh up

# Check status of all infrastructure services
./packages/llm-obs-infra/scripts/manage.sh status

# Run comprehensive 41-point health check suite across all services
./packages/llm-obs-infra/scripts/manage.sh health

# Follow live container logs across all services
./packages/llm-obs-infra/scripts/manage.sh logs

# Restart all infrastructure services
./packages/llm-obs-infra/scripts/manage.sh restart

# Stop all infrastructure services
./packages/llm-obs-infra/scripts/manage.sh down

⚡ Application Microservices Orchestrator (app.sh)

Run all microservices using the CLI orchestrator from packages/llm-obs-node-packages/web-app:

# List all 17 registered microservices and assigned unique ports
./packages/llm-obs-node-packages/web-app/scripts/app.sh list

# Run any microservice individually (e.g. faithfulness, toxicity, latency, quality, auth)
./packages/llm-obs-node-packages/web-app/scripts/app.sh run faithfulness
./packages/llm-obs-node-packages/web-app/scripts/app.sh run toxicity
./packages/llm-obs-node-packages/web-app/scripts/app.sh run latency

# Run default development environment (Web App + Auth + Storybook)
./packages/llm-obs-node-packages/web-app/scripts/app.sh dev

# Run custom combination of services
./packages/llm-obs-node-packages/web-app/scripts/app.sh dev web-app auth quality faithfulness

# Run full health check across all microservices
./packages/llm-obs-node-packages/web-app/scripts/app.sh health

🐳 Direct Docker Compose Commands

# Check status of running containers
docker compose -f packages/llm-obs-infra/docker-compose.yml ps

# Start all containers in background
docker compose -f packages/llm-obs-infra/docker-compose.yml up -d

# View live container logs
docker compose -f packages/llm-obs-infra/docker-compose.yml logs -f

# Stop containers
docker compose -f packages/llm-obs-infra/docker-compose.yml down

🖥️ Self-Hosted Admin Consoles & Endpoints

Once launched, access your self-hosted panels:

  • 🌐 Web App Dashboard (Frontend Demo): https://llm-obs-web-app-9664.web.app (Interactive UI demo; real telemetry requires running the backend services below)
  • 📊 Grafana Dashboard Console: Port 31415 (http://localhost:31415) — Default: admin / llmobs_admin_password
  • ⏱️ Temporal Web Interface: Port 31425 (http://localhost:31425)
  • 🌐 Traefik Gateway Dashboard: Port 31411 (http://localhost:31411)
  • 🔍 ClickHouse HTTP API: Port 31421 (Host) / 8123 (Internal)
  • 📡 OpenTelemetry Collector: Port 31417 (HTTP 4318) / 31418 (gRPC 4317)
  • ⚡ AlloyDB Omni (PostgreSQL): Port 31420 (Internal 5432)
  • 🔑 Redis Spend Ledger: Port 31413 (Internal 6379)

📦 Deployment & Production Orchestration

All deployment resources are organized inside the package packages/configs/observability-deploy/deploy/:

Target Environment Deployment Engine Path / Directory Core Configurations / Files Premium Features
Local Development Docker Compose deploy/docker/ docker-compose.yaml Zero-setup, in-flight migrations, and automated host backup registration on startup.
Kubernetes (EKS/GKE/AKS) kubectl deploy/kubernetes/ network-policies.yaml
migrations-job.yaml
backup-cronjob.yaml
Enforces strict pod-isolation boundaries, starts database schema Jobs, and schedules daily CronJob backups.
AWS Cloud Terraform deploy/terraform/aws/ main.tf
variables.tf
Provisions isolated VPC networks, EKS Nodes, private RDS instances, and MSK Kafka brokers.
GCP Cloud Terraform deploy/terraform/gcp/ main.tf
variables.tf
Provisions VPC subnets, GKE Cluster pools, private Cloud SQL DB, and MemoryStore Redis.
Azure Cloud Terraform deploy/terraform/azure/ main.tf
variables.tf
Provisions private VNets, AKS clusters, PostgreSQL Flexible Servers, and Azure Cache Redis.
Bare Metal / VMs Ansible deploy/ansible/ hosts.ini
playbook.yaml
Provisions VM nodes, installs Docker engines, and configures local UFW firewalls to deny database ports.

Tip

Run the orchestrator CLI tool to provision or deploy directly:

./packages/configs/observability-deploy/scripts/deploy.sh

💾 Database Backups & Zero-Downtime Migration

Refer to the DATA_MIGRATION_AND_BACKUP.md guide for details on data protection.

Manual backups can be run anytime:

./packages/configs/observability-deploy/scripts/backup.sh

⚖️ Benefits & Tradeoffs of the Self-Hosted Stack

✅ Benefits (Why Self-Host) ⚠️ Tradeoffs & Considerations
Full Data Sovereignty: Ingested prompts, vectors, and PII data remain completely within your secure network boundaries. Operational Overhead: Active monitoring is required to maintain health for ZooKeeper, Kafka, and ClickHouse clusters.
High Cost Savings: Zero pricing scaling constraints relative to commercial SaaS logging solutions. Resource Footprint: Demands a minimum of 12 GB RAM locally to run python models and database engines concurrently.
Strict Network Isolation: Out-of-the-box Kubernetes NetworkPolicies and Ansible UFW firewalls secure stateful databases. Maintenance Responsibility: DevOps teams own data lifecycle storage, backups management, and platform updates.
Automated Lifecycle Ops: Schema migrations and daily backup schedules are natively handled on startup. Cluster Complexity: A 13-service microservices footprint requires robust container staging and network coordination.
Resilient Workflow Engines: Temporal orchestrates scorer logic and EWMA calculations with built-in retry-on-failure.