How phil-ngugi/otel-for-jaeger works
This is an Express observability demo: requests exercise tracing, metrics, logging, and sample business flows, with telemetry collected by Jaeger, Prometheus, and Loki and explored in Grafana. The README also documents Promtail and Fluent Bit log collection. Source excerpts show the app loading the OpenTelemetry SDK and using the logger; the README supplies the collector and dashboard relationships. The listed configuration paths establish the observability stack, but not every runtime wiring detail.
Main entry points: index.js Express endpoints · otel-demo.json Grafana dashboards · tracing.js OpenTelemetry SDK · logger.js Application log file
Components 15
Demo application
- Express endpoints
index.js - Request scenarios
index.js - Checkout simulation
index.js - Structured logger
logger.js
Telemetry runtime
- OpenTelemetry SDK
tracing.js - OTLP trace export
tracing.js - Prometheus exporter
tracing.js
Log pipeline
- Application log file
logger.js - Promtail collector
promtail/promtail-config.yml - Fluent Bit collector
fluent-bit/fluent-bit.conf
Observability services
- Loki
loki/loki-config.yml - Jaeger
- Prometheus
prometheus.yml - Grafana dashboards
grafana/provisioning/dashboards/otel-demo.json
Other components
- HTTP caller
Connections 17
- HTTP caller → Express endpoints: sends requests
Readme.md - Express endpoints → Request scenarios: routes requests
index.js - Express endpoints → Checkout simulation: handles checkout
index.js - Express endpoints → OpenTelemetry SDK: loads first
index.js - Express endpoints → Structured logger: writes logs
index.js - Structured logger → Application log file: writes entries
logger.js - OpenTelemetry SDK → OTLP trace export: exports traces
tracing.js - OpenTelemetry SDK → Prometheus exporter: serves metrics
tracing.js - OTLP trace export → Jaeger: sends OTLP
Readme.md - Prometheus exporter → Prometheus: scrapes metrics
Readme.md - Application log file → Promtail collector: collects logs
Readme.md - Application log file → Fluent Bit collector: collects logs
Readme.md - Promtail collector → Loki: pushes logs
Readme.md - Fluent Bit collector → Loki: pushes logs
Readme.md - Grafana dashboards → Jaeger: queries traces
Readme.md - Grafana dashboards → Prometheus: queries metrics
Readme.md - Grafana dashboards → Loki: queries logs
Readme.md