Skip to content

sahilpatel09/TeleScope

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TeleScope

Replicating Datadog APM with open source tooling.

Image

TODO

  • Drill down feature with prometheus metrics of traces

Components

The stack consists of the following components:

FastAPI Application: A simple Python web application built with FastAPI, instrumented to emit OpenTelemetry traces.

OpenTelemetry Collector (otel-collector): Acts as a central hub for collecting, processing, and routing telemetry data (traces and metrics) from the FastAPI application to Tempo and Prometheus.

Grafana Tempo (tempo): A high-volume, minimal-dependency distributed tracing backend that stores and queries traces. It includes a metrics_generator to derive service graph and RED (Rate, Error, Duration) metrics from traces.

Prometheus (prometheus): A monitoring system that collects and stores time-series data. It receives metrics pushed from Tempo's metrics_generator.

Grafana (grafana): A powerful open-source platform for analytics and monitoring. It queries Tempo for traces and Prometheus for metrics, providing rich dashboards for visualization.

Architecture

The data flow within this observability stack is as follows:

+----------------+       +-------------------+       +---------------+          +--------------------------------+  
| FastAPI App    | ----> | OpenTelemetry     | ----> | Grafana       |          |                                |  
| (OTEL Tracing) |       | Collector         |       | Tempo         |  <-----  |     Grafana Visualizations     |  
+----------------+       | (OTLP Receiver)   |       | (Trace Store) |          |       Tempo & Prometheus       |. ---  
                         | (Batch Processor) |       +---------------+          |                                |.   |
                         | (OTLP/Tempo Exp)  |              |                   +--------------------------------+.   |
                         +-------------------+              |                                                         |
                                                            |                                                         |
                                                            | (Metrics Generator - Prometheus Remote Write Rx).       |
                                                            |                                                         |
                                                            V                                                         |
                                                      +------------+                                                  |
                                                      | Prometheus | <-------------------------------------------------
                                                      +------------+

Getting Started

make up
make setup-uv
make all
make call-endpoints

About

Datadog like APM with OpenTelemetry and open source tooling.

Topics

Resources

Stars

Watchers

Forks

Contributors