Initial commit: Complete DevServer monitoring framework

- FastAPI application with OpenTelemetry instrumentation
- Redis caching and Celery task processing
- Docker Compose setup with monitoring stack
- Grafana dashboards and Prometheus metrics
- Jaeger distributed tracing
- Comprehensive documentation in docs/ folder
- Monitoring configuration and troubleshooting guides
This commit is contained in:
Hardik Sankhla
2025-10-13 09:55:17 +05:30
commit 2304c3ed12
32 changed files with 7146 additions and 0 deletions

52
monitoring/prometheus.yml Normal file
View File

@@ -0,0 +1,52 @@
global:
scrape_interval: 15s
evaluation_interval: 15s
scrape_configs:
# Prometheus itself
- job_name: 'prometheus'
static_configs:
- targets: ['localhost:9090']
# FastAPI Application
- job_name: 'fastapi-app'
static_configs:
- targets: ['devserver:8000']
scrape_interval: 5s
scrape_timeout: 4s
metrics_path: '/metrics'
# RabbitMQ Metrics
- job_name: 'rabbitmq'
static_configs:
- targets: ['rabbitmq:15692']
scrape_interval: 15s
# Loki Metrics
- job_name: 'loki'
static_configs:
- targets: ['loki:3100']
scrape_interval: 15s
metrics_path: '/metrics'
# cAdvisor Container Metrics
- job_name: 'cadvisor'
static_configs:
- targets: ['cadvisor:8080']
scrape_interval: 15s
metrics_path: '/metrics'
# OTEL Collector Metrics
- job_name: 'otel-collector'
static_configs:
- targets: ['otel-collector:8889']
scrape_interval: 15s
scrape_timeout: 10s
metrics_path: '/metrics'
# Jaeger Metrics
- job_name: 'jaeger'
static_configs:
- targets: ['jaeger:14269']
scrape_interval: 15s
metrics_path: '/metrics'