Skip to content
This repository was archived by the owner on Feb 6, 2026. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion DEV_DOCS.md
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ These external services are deployed via [`docker compose`](https://docs.docker.
Thus, it is worth checking if you are running these services to avoid conflicts when running SI.
Potentially conflicting services include, but are not limited to, the following:

* Jaeger
* Tempo
* NATS and NATS Jetstream
* OpenTelemetry
* PostgreSQL
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ We use [`buck2`](https://github.com/facebook/buck2) to run the stack, run and bu

> [!WARNING]
> Before continuing, you should stop any locally running services to avoid conflicting ports with the stack.
> Some of the services that will run include, but are not limited to the following: PostgreSQL, NATS, Jaeger and OpenTelemetry._
> Some of the services that will run include, but are not limited to the following: PostgreSQL, NATS, Tempo and OpenTelemetry._

Check if you are ready to run the stack before continuing.

Expand Down
8 changes: 5 additions & 3 deletions component/otelcol/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,16 @@ ENV SI_OTEL_COL__HONEYCOMB_API_KEY=""

# We're going to base our image on a non-scratch image which should allow us to
# `docker exec` into a running instance for debugging

FROM alpine:3 AS final

RUN apk add --no-cache \
curl
WORKDIR /app

COPY --from=otelcol /otelcol-contrib /bin/otelcol
COPY ./*config.yaml /etc/otelcol/
COPY ./docker-entrypoint.sh /app/docker-entrypoint.sh
COPY ./docker-entrypoint.sh /docker-entrypoint.sh

HEALTHCHECK CMD curl --fail http://127.0.0.1:13133/ || exit 1

ENTRYPOINT ["/app/docker-entrypoint.sh"]
ENTRYPOINT ["/docker-entrypoint.sh"]
11 changes: 7 additions & 4 deletions component/otelcol/config.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
---
receivers:
otlp:
protocols:
Expand Down Expand Up @@ -203,10 +204,12 @@ processors:
exporters:
debug:
verbosity: normal
otlp:
endpoint: jaeger:4317
otlp/tempo:
endpoint: tempo:4317
tls:
insecure: true
otlphttp/loki:
endpoint: http://loki:3100/otlp
prometheus:
endpoint: otelcol:9090

Expand All @@ -219,15 +222,15 @@ service:
logs:
receivers: [otlp]
processors: [batch]
exporters: [debug, otlp]
exporters: [debug, otlphttp/loki]
traces:
receivers: [otlp]
processors:
- memory_limiter
- transform/spanevent
- filter/spanevent
- batch
exporters: [debug, otlp]
exporters: [debug, otlp/tempo]
metrics:
receivers: [otlp]
processors: [batch]
Expand Down
11 changes: 8 additions & 3 deletions component/otelcol/docker-entrypoint.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
#!/bin/sh
#!/usr/bin/env sh
set -eu

sed -i "s/SI_OTEL_COL__HONEYCOMB_API_KEY/$SI_OTEL_COL__HONEYCOMB_API_KEY/g" ${SI_OTEL_COL__CONFIG_PATH-/etc/otelcol/config.yaml}
config="${SI_OTEL_COL__CONFIG_PATH-/etc/otelcol/config.yaml}"

/bin/otelcol --config ${SI_OTEL_COL__CONFIG_PATH-/etc/otelcol/config.yaml}
sed \
-i "s/SI_OTEL_COL__HONEYCOMB_API_KEY/${SI_OTEL_COL__HONEYCOMB_API_KEY:-}/g" \
"$config"

exec /bin/otelcol --config "$config"
1 change: 1 addition & 0 deletions component/otelcol/honeycomb-config.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
---
receivers:
otlp:
protocols:
Expand Down
19 changes: 19 additions & 0 deletions component/tempo/BUCK
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
load(
"@prelude-si//:macros.bzl",
"container_image",
)

container_image(
name = "tempo",
srcs = {
"tempo.yaml": ".",
},
build_args = {
"BASE_VERSION": "2.9.0",
},
run_docker_args = [
"--publish",
"3200:3200",
],
default_target = True,
)
3 changes: 3 additions & 0 deletions component/tempo/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
ARG BASE_VERSION
FROM grafana/tempo:${BASE_VERSION}
COPY ./tempo.yaml /etc/tempo.yaml
48 changes: 48 additions & 0 deletions component/tempo/tempo.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
server:
http_listen_port: 3200

distributor:
receivers:
otlp:
protocols:
grpc:
endpoint: 0.0.0.0:4317
http:
endpoint: 0.0.0.0:4318

ingester:
max_block_duration: 5m

compactor:
compaction:
block_retention: 336h

storage:
trace:
backend: local
wal:
path: /tmp/tempo/wal
local:
path: /tmp/tempo/blocks

query_frontend:
search:
duration_slo: 5s
throughput_bytes_slo: 1.073741824e+09
trace_by_id:
duration_slo: 5s

metrics_generator:
registry:
external_labels:
source: tempo
cluster: dev
storage:
path: /tmp/tempo/generator/wal
traces_storage:
path: /tmp/tempo/generator/traces
processor:
service_graphs:
dimensions: []
span_metrics:
dimensions: []
12 changes: 6 additions & 6 deletions dev/Tiltfile
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ groups = {
],
"telemetry": [
"grafana",
"jaeger",
"tempo",
"loki",
"node_exporter",
"prometheus",
Expand Down Expand Up @@ -165,11 +165,6 @@ compose_services = {
link("http://localhost:3000", "grafana-ui"),
],
},
"jaeger": {
"links": [
link("http://localhost:16686", "jaeger-ui"),
],
},
"localstack": {
"links": [
link("http://localhost:4566", "localstack-api"),
Expand All @@ -184,6 +179,11 @@ compose_services = {
"prometheus": {},
"promtail": {},
"spicedb": {},
"tempo": {
"links": [
link("http://localhost:3200", "tempo-ui"),
],
},
"versitygw": {},
}
for service, kwargs in compose_services.items():
Expand Down
5 changes: 5 additions & 0 deletions dev/config/grafana/provisioning/dashboards/dashboards.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,8 @@ providers:
allowUiUpdates: true
options:
path: /etc/grafana/provisioning/dashboards
- name: 'Tempo Examples'
folder: 'Tempo'
type: file
options:
path: /etc/grafana/provisioning/dashboards/tempo
Original file line number Diff line number Diff line change
@@ -0,0 +1,84 @@
{
"annotations": {
"list": []
},
"editable": true,
"fiscalYearStartMonth": 0,
"graphTooltip": 0,
"id": null,
"links": [],
"panels": [
{
"datasource": {
"type": "tempo",
"uid": "tempo"
},
"fieldConfig": {
"defaults": {
"color": {
"mode": "palette-classic"
},
"custom": {
"hideFrom": {
"tooltip": false,
"viz": false,
"legend": false
}
},
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
}
]
}
},
"overrides": []
},
"gridPos": {
"h": 16,
"w": 24,
"x": 0,
"y": 0
},
"id": 1,
"options": {
"edges": {},
"nodes": {}
},
"pluginVersion": "10.0.0",
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "prometheus"
},
"expr": "sum by (client, server) (rate(traces_service_graph_request_total[5m]))",
"refId": "A"
}
],
"title": "Service Dependency Graph",
"type": "nodeGraph",
"description": "Service dependencies derived from trace spans. Click nodes to filter traces for that service."
}
],
"refresh": "30s",
"schemaVersion": 38,
"tags": ["tempo", "tracing", "service-graph"],
"templating": {
"list": []
},
"time": {
"from": "now-1h",
"to": "now"
},
"timepicker": {},
"timezone": "",
"title": "Tempo - Service Dependencies",
"uid": "tempo-service-dependencies",
"version": 1,
"weekStart": ""
}
Loading