Skip to content

Commit

Permalink
feat: enable and config tempo service graph
Browse files Browse the repository at this point in the history
  • Loading branch information
mochacr0 committed Feb 19, 2024
1 parent d4a79a9 commit 1779e0c
Show file tree
Hide file tree
Showing 4 changed files with 47 additions and 24 deletions.
20 changes: 12 additions & 8 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -93,19 +93,23 @@ services:
- GF_AUTH_DISABLE_LOGIN_FORM=true
ports:
- "3000:3000"
# k6-tracing:
# image: ghcr.io/grafana/xk6-client-tracing:latest
# environment:
# - ENDPOINT=tempo:3201
# restart: always
# depends_on:
# - tempo
prometheus:
image: prom/prometheus:v2.49.1
command:
- --config.file=/etc/prometheus/prometheus.yml
# - --enable-feature=exemplar-storage
- --web.enable-remote-write-receiver
volumes:
- ./prometheus/config.yml:/etc/prometheus/prometheus.yml
ports:
- "9090:9090"
depends_on:
otel-collector:
condition: service_started
condition: service_started
# k6-tracing:
# image: ghcr.io/grafana/xk6-client-tracing:latest
# environment:
# - ENDPOINT=tempo:3201
# restart: always
# depends_on:
# - tempo
26 changes: 16 additions & 10 deletions grafana/datasources.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,5 @@
apiVersion: 1
datasources:
- name: Tempo
apiVersion: 1
version: 1
type: tempo
uid: tempo
url: http://tempo:3200
access: proxy
basicAuth: false
isDefault: true
editable: false
- name: Prometheus
apiVersion: 1
version: 1
Expand All @@ -20,3 +10,19 @@ datasources:
basicAuth: false
isDefault: false
editable: false
jsonData:
httpMethod: GET
- name: Tempo
apiVersion: 1
version: 1
type: tempo
uid: tempo
url: http://tempo:3200
access: proxy
basicAuth: false
isDefault: true
editable: false
jsonData:
httpMethod: GET
serviceMap:
datasourceUid: prometheus
9 changes: 4 additions & 5 deletions prometheus/config.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
global:
scrape_interval: 5s
scrape_configs:
- job_name: otel-collector
static_configs:
- targets:
- 'otel-collector:8889'
#scrape_configs:
# - job_name: otel-collector
# static_configs:
# - targets: ['otel-collector:8889']
16 changes: 15 additions & 1 deletion tempo/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,18 @@ storage:
local:
path: /tmp/tempo/blocks
wal:
path: /tmp/tempo/wal
path: /tmp/tempo/wal
metrics_generator:
registry:
external_labels:
source: tempo
cluster: docker-compose
storage:
path: /tmp/tempo/generator/wal
remote_write:
- url: http://prometheus:9090/api/v1/write
# send_exemplars: true
overrides:
defaults:
metrics_generator:
processors: [service-graphs, span-metrics]

0 comments on commit 1779e0c

Please sign in to comment.