From fee7a8cb5da07e66d136262433da7546ae778131 Mon Sep 17 00:00:00 2001 From: Fletcher Nichol Date: Thu, 15 Jan 2026 14:50:03 -0700 Subject: [PATCH 01/16] feat(tempo): add Tempo configuration for local dev - Monolithic mode with local filesystem storage - 14-day retention (336h block_retention) - Metrics generator enabled for trace-to-metrics features - 5m block duration for faster query availability in dev --- dev/config/tempo/tempo.yaml | 43 +++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 dev/config/tempo/tempo.yaml diff --git a/dev/config/tempo/tempo.yaml b/dev/config/tempo/tempo.yaml new file mode 100644 index 0000000000..7e4bb63e63 --- /dev/null +++ b/dev/config/tempo/tempo.yaml @@ -0,0 +1,43 @@ +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 From 556b986f6897ae6f5b4ef389fae1a532e7ed5912 Mon Sep 17 00:00:00 2001 From: Fletcher Nichol Date: Thu, 15 Jan 2026 15:01:44 -0700 Subject: [PATCH 02/16] feat(tempo): replace Jaeger with Tempo in docker-compose - Replace jaeger service with tempo service - Expose Tempo on port 3200 (HTTP API/UI) - Mount tempo.yaml config from dev/config/tempo/ - Update otelcol dependency from jaeger to tempo --- dev/docker-compose.platform.yml | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/dev/docker-compose.platform.yml b/dev/docker-compose.platform.yml index 045a84f2ce..d4b2add04c 100644 --- a/dev/docker-compose.platform.yml +++ b/dev/docker-compose.platform.yml @@ -35,11 +35,14 @@ services: - ./config/grafana/provisioning/datasources:/etc/grafana/provisioning/datasources - ./config/grafana/provisioning/dashboards:/etc/grafana/provisioning/dashboards - jaeger: - image: systeminit/jaeger:stable + tempo: + image: grafana/tempo + command: + - "-config.file=/etc/tempo.yaml" ports: - # jaeger ui - - "16686:16686" + - "3200:3200" + volumes: + - ./config/tempo/tempo.yaml:/etc/tempo.yaml localstack: image: localstack/localstack @@ -84,7 +87,7 @@ services: # receiver: http (external for host-run servers) - "4318:4318" depends_on: - - jaeger + - tempo postgres: image: systeminit/postgres:stable From 00931888e147b58dd38431b45515ec5db6600b87 Mon Sep 17 00:00:00 2001 From: Fletcher Nichol Date: Thu, 15 Jan 2026 16:03:55 -0700 Subject: [PATCH 03/16] feat(tempo): update OTEL Collector to export to Tempo - Rename exporter from otlp to otlp/tempo - Update endpoint from jaeger:4317 to tempo:4317 - Update traces pipeline to use otlp/tempo exporter - Update logs pipeline to use otlp/tempo exporter --- component/otelcol/config.yaml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/component/otelcol/config.yaml b/component/otelcol/config.yaml index 068160a7a0..5569e1c91b 100644 --- a/component/otelcol/config.yaml +++ b/component/otelcol/config.yaml @@ -203,8 +203,8 @@ processors: exporters: debug: verbosity: normal - otlp: - endpoint: jaeger:4317 + otlp/tempo: + endpoint: tempo:4317 tls: insecure: true prometheus: @@ -219,7 +219,7 @@ service: logs: receivers: [otlp] processors: [batch] - exporters: [debug, otlp] + exporters: [debug, otlp/tempo] traces: receivers: [otlp] processors: @@ -227,7 +227,7 @@ service: - transform/spanevent - filter/spanevent - batch - exporters: [debug, otlp] + exporters: [debug, otlp/tempo] metrics: receivers: [otlp] processors: [batch] From fc115c6b14ec0acfba22437b73825ded6f8b805d Mon Sep 17 00:00:00 2001 From: Fletcher Nichol Date: Thu, 15 Jan 2026 16:15:08 -0700 Subject: [PATCH 04/16] fix(tempo): route logs to Loki instead of Tempo Tempo is a tracing backend and doesn't handle logs. Logs should be routed to Loki for proper storage and to enable trace-to-logs navigation in Grafana. - Add otlphttp/loki exporter - Update logs pipeline to use otlphttp/loki - Traces pipeline unchanged (still routes to otlp/tempo) --- component/otelcol/config.yaml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/component/otelcol/config.yaml b/component/otelcol/config.yaml index 5569e1c91b..47879d5714 100644 --- a/component/otelcol/config.yaml +++ b/component/otelcol/config.yaml @@ -207,6 +207,8 @@ exporters: endpoint: tempo:4317 tls: insecure: true + otlphttp/loki: + endpoint: http://loki:3100/otlp prometheus: endpoint: otelcol:9090 @@ -219,7 +221,7 @@ service: logs: receivers: [otlp] processors: [batch] - exporters: [debug, otlp/tempo] + exporters: [debug, otlphttp/loki] traces: receivers: [otlp] processors: From acc718c2c8657491d5984c085f6fd9e52d2792c0 Mon Sep 17 00:00:00 2001 From: Fletcher Nichol Date: Thu, 15 Jan 2026 16:25:47 -0700 Subject: [PATCH 05/16] feat(tempo): replace Jaeger datasource with Tempo in Grafana - Change datasource type from jaeger to tempo - Update URL to tempo:3200 - Add jsonData for enhanced integration: - tracesToLogs: enable jump from traces to Loki logs - tracesToMetrics: enable jump from traces to Prometheus metrics - serviceMap: enable service graph from traces - nodeGraph: enable node graph visualization --- .../provisioning/datasources/datasources.yml | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/dev/config/grafana/provisioning/datasources/datasources.yml b/dev/config/grafana/provisioning/datasources/datasources.yml index bd3cc3a691..7951a59853 100644 --- a/dev/config/grafana/provisioning/datasources/datasources.yml +++ b/dev/config/grafana/provisioning/datasources/datasources.yml @@ -1,13 +1,22 @@ apiVersion: 1 datasources: - - name: Jaeger - type: jaeger - url: http://dev-jaeger-1:16686 + - name: Tempo + type: tempo + url: http://tempo:3200 basicAuth: false access: proxy readOnly: false isDefault: true + jsonData: + tracesToLogs: + datasourceUid: 'loki' + tracesToMetrics: + datasourceUid: 'prometheus' + serviceMap: + datasourceUid: 'prometheus' + nodeGraph: + enabled: true - name: Loki type: loki access: proxy From b8c14261c44a699613649251fb5144584cb17a68 Mon Sep 17 00:00:00 2001 From: Fletcher Nichol Date: Thu, 15 Jan 2026 16:29:06 -0700 Subject: [PATCH 06/16] fix(grafana): add explicit UIDs to datasources Add explicit uid fields to Tempo, Loki, and Prometheus datasources to ensure reliable cross-datasource references and follow Grafana best practices for datasource provisioning. --- dev/config/grafana/provisioning/datasources/datasources.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/dev/config/grafana/provisioning/datasources/datasources.yml b/dev/config/grafana/provisioning/datasources/datasources.yml index 7951a59853..37734d134f 100644 --- a/dev/config/grafana/provisioning/datasources/datasources.yml +++ b/dev/config/grafana/provisioning/datasources/datasources.yml @@ -2,6 +2,7 @@ apiVersion: 1 datasources: - name: Tempo + uid: tempo type: tempo url: http://tempo:3200 basicAuth: false @@ -18,6 +19,7 @@ datasources: nodeGraph: enabled: true - name: Loki + uid: loki type: loki access: proxy url: http://loki:3100 @@ -25,6 +27,7 @@ datasources: timeout: 60 maxLines: 1000 - name: Prometheus + uid: prometheus type: prometheus access: proxy url: http://prometheus:9090 From 2ebb57c84020e5d70533ea84275a49a569d23d93 Mon Sep 17 00:00:00 2001 From: Fletcher Nichol Date: Thu, 15 Jan 2026 16:35:37 -0700 Subject: [PATCH 07/16] feat(tempo): add Grafana dashboard provisioning for Tempo - Create dashboards.yml with Tempo Examples provider - Configure path to /etc/grafana/provisioning/dashboards/tempo - Dashboards will appear in 'Tempo' folder in Grafana --- dev/config/grafana/provisioning/dashboards/dashboards.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/dev/config/grafana/provisioning/dashboards/dashboards.yml b/dev/config/grafana/provisioning/dashboards/dashboards.yml index cf2a1388a0..2736f9ba0b 100644 --- a/dev/config/grafana/provisioning/dashboards/dashboards.yml +++ b/dev/config/grafana/provisioning/dashboards/dashboards.yml @@ -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 From 71b2b7133753abfd07171af5c516c47c1b65618e Mon Sep 17 00:00:00 2001 From: Fletcher Nichol Date: Thu, 15 Jan 2026 17:02:00 -0700 Subject: [PATCH 08/16] feat(tempo): add Trace Overview dashboard Dashboard shows trace-derived RED metrics: - Spans per service (request rate) - Error rate by service - P95 latency by service Demonstrates trace-to-metrics capability using Tempo's metrics generator and Prometheus integration. --- .../dashboards/tempo/trace-overview.json | 296 ++++++++++++++++++ 1 file changed, 296 insertions(+) create mode 100644 dev/config/grafana/provisioning/dashboards/tempo/trace-overview.json diff --git a/dev/config/grafana/provisioning/dashboards/tempo/trace-overview.json b/dev/config/grafana/provisioning/dashboards/tempo/trace-overview.json new file mode 100644 index 0000000000..47f4a14b8c --- /dev/null +++ b/dev/config/grafana/provisioning/dashboards/tempo/trace-overview.json @@ -0,0 +1,296 @@ +{ + "annotations": { + "list": [] + }, + "editable": true, + "fiscalYearStartMonth": 0, + "graphTooltip": 0, + "id": null, + "links": [], + "panels": [ + { + "datasource": { + "type": "tempo", + "uid": "tempo" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "line", + "fillOpacity": 10, + "gradientMode": "none", + "hideFrom": { + "tooltip": false, + "viz": false, + "legend": false + }, + "lineInterpolation": "linear", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + } + ] + }, + "unit": "short" + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 12, + "x": 0, + "y": 0 + }, + "id": 1, + "options": { + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "pluginVersion": "10.0.0", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "prometheus" + }, + "expr": "rate(traces_spanmetrics_calls_total[5m])", + "legendFormat": "{{service_name}}", + "refId": "A" + } + ], + "title": "Spans per Service (Rate)", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "prometheus" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "line", + "fillOpacity": 10, + "gradientMode": "none", + "hideFrom": { + "tooltip": false, + "viz": false, + "legend": false + }, + "lineInterpolation": "linear", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 0.01 + } + ] + }, + "unit": "percentunit" + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 12, + "x": 12, + "y": 0 + }, + "id": 2, + "options": { + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "pluginVersion": "10.0.0", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "prometheus" + }, + "expr": "rate(traces_spanmetrics_calls_total{status_code=\"STATUS_CODE_ERROR\"}[5m]) / rate(traces_spanmetrics_calls_total[5m])", + "legendFormat": "{{service_name}}", + "refId": "A" + } + ], + "title": "Error Rate by Service", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "prometheus" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "line", + "fillOpacity": 10, + "gradientMode": "none", + "hideFrom": { + "tooltip": false, + "viz": false, + "legend": false + }, + "lineInterpolation": "linear", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + } + ] + }, + "unit": "s" + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 24, + "x": 0, + "y": 8 + }, + "id": 3, + "options": { + "legend": { + "calcs": ["mean", "lastNotNull", "max"], + "displayMode": "table", + "placement": "right", + "showLegend": true + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "pluginVersion": "10.0.0", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "prometheus" + }, + "expr": "histogram_quantile(0.95, sum(rate(traces_spanmetrics_latency_bucket[5m])) by (le, service_name))", + "legendFormat": "{{service_name}}", + "refId": "A" + } + ], + "title": "P95 Latency by Service", + "type": "timeseries" + } + ], + "refresh": "5s", + "schemaVersion": 38, + "tags": ["tempo", "tracing"], + "templating": { + "list": [] + }, + "time": { + "from": "now-1h", + "to": "now" + }, + "timepicker": {}, + "timezone": "", + "title": "Tempo - Trace Overview", + "uid": "tempo-trace-overview", + "version": 1, + "weekStart": "" +} From 17c39e28590651f0e603b413ea81872a6c6bf8bd Mon Sep 17 00:00:00 2001 From: Fletcher Nichol Date: Thu, 15 Jan 2026 17:09:32 -0700 Subject: [PATCH 09/16] fix(tempo): correct datasource declaration in Panel 1 of trace overview Panel 1 should declare Prometheus datasource consistently with panels 2 and 3, since it queries trace-derived metrics from Prometheus, not Tempo directly. --- .../grafana/provisioning/dashboards/tempo/trace-overview.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dev/config/grafana/provisioning/dashboards/tempo/trace-overview.json b/dev/config/grafana/provisioning/dashboards/tempo/trace-overview.json index 47f4a14b8c..9cb5a16cfa 100644 --- a/dev/config/grafana/provisioning/dashboards/tempo/trace-overview.json +++ b/dev/config/grafana/provisioning/dashboards/tempo/trace-overview.json @@ -10,8 +10,8 @@ "panels": [ { "datasource": { - "type": "tempo", - "uid": "tempo" + "type": "prometheus", + "uid": "prometheus" }, "fieldConfig": { "defaults": { From b3021c08dce8c6d7dc05f73e9b8b631f04184edf Mon Sep 17 00:00:00 2001 From: Fletcher Nichol Date: Thu, 15 Jan 2026 17:18:52 -0700 Subject: [PATCH 10/16] feat(tempo): add Service Dependencies dashboard Shows service dependency graph using Tempo's service graph metrics. Nodes are clickable to filter traces for specific services. Demonstrates service graph feature and cross-panel navigation. --- .../tempo/service-dependencies.json | 84 +++++++++++++++++++ 1 file changed, 84 insertions(+) create mode 100644 dev/config/grafana/provisioning/dashboards/tempo/service-dependencies.json diff --git a/dev/config/grafana/provisioning/dashboards/tempo/service-dependencies.json b/dev/config/grafana/provisioning/dashboards/tempo/service-dependencies.json new file mode 100644 index 0000000000..5939ef8e4d --- /dev/null +++ b/dev/config/grafana/provisioning/dashboards/tempo/service-dependencies.json @@ -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": "" +} From ec2c800d17e932796eebccf4cf6f7c24e0e32d53 Mon Sep 17 00:00:00 2001 From: Fletcher Nichol Date: Thu, 15 Jan 2026 17:26:13 -0700 Subject: [PATCH 11/16] fix(tempo): enable service graph processor in metrics generator Add processor configuration to enable service graph and span metrics generation. This allows Tempo to generate traces_service_graph_request_total metrics required for the Service Dependencies dashboard. Without this configuration, the service graph dashboard will be empty. --- dev/config/tempo/tempo.yaml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/dev/config/tempo/tempo.yaml b/dev/config/tempo/tempo.yaml index 7e4bb63e63..20c8d72107 100644 --- a/dev/config/tempo/tempo.yaml +++ b/dev/config/tempo/tempo.yaml @@ -41,3 +41,8 @@ metrics_generator: path: /tmp/tempo/generator/wal traces_storage: path: /tmp/tempo/generator/traces + processor: + service_graphs: + dimensions: [] + span_metrics: + dimensions: [] From c7e9b89ddcf99b2e3770f50878d08c5769c12435 Mon Sep 17 00:00:00 2001 From: Fletcher Nichol Date: Thu, 15 Jan 2026 17:29:23 -0700 Subject: [PATCH 12/16] feat(tempo): update Tiltfile to use Tempo instead of Jaeger - Update telemetry group: jaeger -> tempo - Add tempo to compose_services with link to port 3200 - Remove jaeger from compose_services Developers can access Tempo UI via Tilt at localhost:3200 --- dev/Tiltfile | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/dev/Tiltfile b/dev/Tiltfile index d34001420c..fcec962c12 100644 --- a/dev/Tiltfile +++ b/dev/Tiltfile @@ -40,7 +40,7 @@ groups = { ], "telemetry": [ "grafana", - "jaeger", + "tempo", "loki", "node_exporter", "prometheus", @@ -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"), @@ -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(): From 64cac264bce398886fde78e78c748197932653df Mon Sep 17 00:00:00 2001 From: Fletcher Nichol Date: Thu, 15 Jan 2026 22:24:31 -0700 Subject: [PATCH 13/16] docs: update README to reference Tempo instead of Jaeger - Update tracing service from Jaeger to Tempo - Update port from 16686 to 3200 - Note Grafana integration for trace visualization --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index e50b0ae8e2..70a65963ca 100644 --- a/README.md +++ b/README.md @@ -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. From ebace25358399c53b6c949f31518e8470ecf7583 Mon Sep 17 00:00:00 2001 From: Fletcher Nichol Date: Thu, 15 Jan 2026 22:27:13 -0700 Subject: [PATCH 14/16] docs: update DEV_DOCS to reference Tempo instead of Jaeger - Update tracing documentation from Jaeger to Tempo - Document Grafana as primary interface for traces - Add Tempo evaluation context - Update port references (16686 -> 3200) --- DEV_DOCS.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/DEV_DOCS.md b/DEV_DOCS.md index b3fdc939d8..a6d8680883 100644 --- a/DEV_DOCS.md +++ b/DEV_DOCS.md @@ -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 From ea9efcf768b76ee6cdc070db9b78873b02709184 Mon Sep 17 00:00:00 2001 From: Fletcher Nichol Date: Fri, 16 Jan 2026 17:06:29 -0700 Subject: [PATCH 15/16] chore(otelcol): update build def & entrypoint Signed-off-by: Fletcher Nichol --- component/otelcol/Dockerfile | 8 +++++--- component/otelcol/config.yaml | 1 + component/otelcol/docker-entrypoint.sh | 11 ++++++++--- component/otelcol/honeycomb-config.yaml | 1 + 4 files changed, 15 insertions(+), 6 deletions(-) diff --git a/component/otelcol/Dockerfile b/component/otelcol/Dockerfile index 39b25b2f2c..f2fd33921e 100644 --- a/component/otelcol/Dockerfile +++ b/component/otelcol/Dockerfile @@ -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"] diff --git a/component/otelcol/config.yaml b/component/otelcol/config.yaml index 47879d5714..03c4c6f010 100644 --- a/component/otelcol/config.yaml +++ b/component/otelcol/config.yaml @@ -1,3 +1,4 @@ +--- receivers: otlp: protocols: diff --git a/component/otelcol/docker-entrypoint.sh b/component/otelcol/docker-entrypoint.sh index b1859eff07..db648ae485 100755 --- a/component/otelcol/docker-entrypoint.sh +++ b/component/otelcol/docker-entrypoint.sh @@ -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} \ No newline at end of file +sed \ + -i "s/SI_OTEL_COL__HONEYCOMB_API_KEY/${SI_OTEL_COL__HONEYCOMB_API_KEY:-}/g" \ + "$config" + +exec /bin/otelcol --config "$config" diff --git a/component/otelcol/honeycomb-config.yaml b/component/otelcol/honeycomb-config.yaml index 35df0575df..ba8baaf0f0 100644 --- a/component/otelcol/honeycomb-config.yaml +++ b/component/otelcol/honeycomb-config.yaml @@ -1,3 +1,4 @@ +--- receivers: otlp: protocols: From eaf922ea82b1f0f700dce7427eceecc18c098034 Mon Sep 17 00:00:00 2001 From: Fletcher Nichol Date: Mon, 19 Jan 2026 14:03:21 -0700 Subject: [PATCH 16/16] feat(tempo): build downstream image for tempo This change allows our team to control the versioning of the upstream container image as we do with other services. Signed-off-by: Fletcher Nichol --- component/tempo/BUCK | 19 +++++++++++++++++++ component/tempo/Dockerfile | 3 +++ {dev/config => component}/tempo/tempo.yaml | 0 dev/docker-compose.platform.yml | 4 +--- 4 files changed, 23 insertions(+), 3 deletions(-) create mode 100644 component/tempo/BUCK create mode 100644 component/tempo/Dockerfile rename {dev/config => component}/tempo/tempo.yaml (100%) diff --git a/component/tempo/BUCK b/component/tempo/BUCK new file mode 100644 index 0000000000..b17a659090 --- /dev/null +++ b/component/tempo/BUCK @@ -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, +) diff --git a/component/tempo/Dockerfile b/component/tempo/Dockerfile new file mode 100644 index 0000000000..28649a2b23 --- /dev/null +++ b/component/tempo/Dockerfile @@ -0,0 +1,3 @@ +ARG BASE_VERSION +FROM grafana/tempo:${BASE_VERSION} +COPY ./tempo.yaml /etc/tempo.yaml diff --git a/dev/config/tempo/tempo.yaml b/component/tempo/tempo.yaml similarity index 100% rename from dev/config/tempo/tempo.yaml rename to component/tempo/tempo.yaml diff --git a/dev/docker-compose.platform.yml b/dev/docker-compose.platform.yml index d4b2add04c..338aced4ca 100644 --- a/dev/docker-compose.platform.yml +++ b/dev/docker-compose.platform.yml @@ -36,13 +36,11 @@ services: - ./config/grafana/provisioning/dashboards:/etc/grafana/provisioning/dashboards tempo: - image: grafana/tempo + image: systeminit/tempo:stable command: - "-config.file=/etc/tempo.yaml" ports: - "3200:3200" - volumes: - - ./config/tempo/tempo.yaml:/etc/tempo.yaml localstack: image: localstack/localstack