- 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
52 lines
1.1 KiB
YAML
52 lines
1.1 KiB
YAML
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' |