- 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
79 lines
1.5 KiB
YAML
79 lines
1.5 KiB
YAML
receivers:
|
|
otlp:
|
|
protocols:
|
|
grpc:
|
|
endpoint: 0.0.0.0:4317
|
|
http:
|
|
endpoint: 0.0.0.0:4318
|
|
|
|
prometheus:
|
|
config:
|
|
scrape_configs:
|
|
- job_name: 'otel-collector'
|
|
static_configs:
|
|
- targets: ['localhost:8888']
|
|
|
|
processors:
|
|
batch:
|
|
timeout: 1s
|
|
send_batch_size: 1024
|
|
|
|
memory_limiter:
|
|
check_interval: 1s
|
|
limit_mib: 512
|
|
spike_limit_mib: 128
|
|
|
|
exporters:
|
|
debug:
|
|
verbosity: detailed
|
|
|
|
prometheus:
|
|
endpoint: "0.0.0.0:8889"
|
|
namespace: otelcol
|
|
|
|
prometheusremotewrite:
|
|
endpoint: "http://prometheus:9090/api/v1/write"
|
|
|
|
# Jaeger exporter - using OTLP/gRPC protocol
|
|
otlp/jaeger:
|
|
endpoint: "jaeger:4317"
|
|
tls:
|
|
insecure: true
|
|
|
|
file/logs:
|
|
path: "/var/log/otel-collector/logs.json"
|
|
rotation:
|
|
max_megabytes: 100
|
|
max_days: 3
|
|
max_backups: 3
|
|
|
|
extensions:
|
|
health_check:
|
|
endpoint: 0.0.0.0:13133
|
|
|
|
pprof:
|
|
endpoint: 0.0.0.0:1888
|
|
|
|
zpages:
|
|
endpoint: 0.0.0.0:55679
|
|
|
|
service:
|
|
extensions: [health_check, pprof, zpages]
|
|
telemetry:
|
|
logs:
|
|
level: info
|
|
metrics:
|
|
level: detailed
|
|
pipelines:
|
|
traces:
|
|
receivers: [otlp]
|
|
processors: [memory_limiter, batch]
|
|
exporters: [debug, otlp/jaeger]
|
|
metrics:
|
|
receivers: [otlp, prometheus]
|
|
processors: [memory_limiter, batch]
|
|
exporters: [prometheus, prometheusremotewrite, debug]
|
|
logs:
|
|
receivers: [otlp]
|
|
processors: [memory_limiter, batch]
|
|
exporters: [file/logs, debug] |