Skip to content

fborges22/telemetryOne

Repository files navigation

OpenTelemetry Demo Stack

This project provides a ready-to-run observability sandbox with the OpenTelemetry Collector, example telemetry generators, and popular backends (Jaeger, Prometheus, Grafana). It lets you explore traces, metrics, and logs end-to-end with minimal setup.


What’s Inside

  • OpenTelemetry Collector (Contrib) Receives OTLP telemetry and exports to Jaeger, Prometheus, and console.

  • Telemetry Generators Containers that continuously emit example traces, metrics, and logs.

  • Jaeger (all-in-one) UI for exploring distributed traces.

  • Prometheus Scrapes Collector metrics and pipeline outputs.

  • Grafana Visualizes Prometheus data with dashboards.


Project Structure

📂
├── 📄docker-compose.yml          # Stack definition
├── 📄otel-collector-config.yaml  # Collector pipeline config
└── 📄prometheus.yml              # Prometheus scrape targets

Usage

1. Start the stack

docker-compose up -d

2. Check container status

docker ps -a

3. Stop everything

docker-compose down

Access the UIs


OTLP Endpoints

Your own apps can send telemetry directly to the Collector:

  • gRPC: localhost:4317
  • HTTP: http://localhost:4318

Configuration Notes

  • Collector Exporters

    • otlp/jaeger: sends traces to Jaeger’s OTLP port
    • prometheus: exposes metrics on :8889
    • debug: prints all data to container logs
  • Telemetrygen Flags

    • --duration=inf: run indefinitely
    • --rate=N: items per second
    • For logs you must set --duration (or --logs count), otherwise it exits immediately.

Troubleshooting

  • Collector exited → Check docker logs otel-collector. Often caused by invalid exporter config.
  • Telemetrygen logs restart → Ensure --duration=inf or --logs > 0 is set.
  • No traces in Jaeger → Confirm traces pipeline exporter is otlp/jaeger and the container can reach jaeger:4317.
  • No metrics in Prometheus → Check Prometheus targets at http://localhost:9090/targets.

References


About

Sample implementation for OpenTelemetry containers for testing implementations.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published