How herhu/nestjs-otel-prom-grafana-tempo works
Project Overview & Key Components
• Project Type: Containerized microservices with observability instrumentation.
• Main components:
• Microservices: “actor” and “movie” services (each with their own Dockerfiles, NestJS structure, logger modules, and instrumentation).
• Observability Stack Components:
• Prometheus: Metrics collection (see etc/prometheus.yaml).
• Grafana: Dashboard visualization (configured using data/grafana-data and dashboards JSON/YAML files).
• Tempo: Distributed tracing (configured in etc/tempo.yaml).
• Loki: Log aggregation (configured in etc/loki.yaml & etc/promtail-config.yaml).
• Additional Config: OpenTelemetry Collector (otel-collector.yaml) and Docker Compose configuration (docker-compose.yml) to wire up these containers.
Analyzing the File Structure
• The top-level directories separate service code (inside the “services” directory) from observability configurations (inside “etc” and “data” for Grafana).
• The “doc” directory provides additional, but secondary, supporting documentation.
• Both services (“actor” and “movie”) are structured similarly. Each contains an “src” directory with NestJS modules, controllers, services, and logger instrumentation.
• The “docker-compose.yml” suggests that all these components are containerized and orchestrated together.