From 6f6b8576f025434410e0c049a2971e20e29f108f Mon Sep 17 00:00:00 2001 From: Daenney Date: Fri, 9 Jun 2023 16:04:23 +0200 Subject: [docs] Add example tracing infrastructure (#1866) This adds an example on how to get Grafana Tempo up to receive spans as well as Grafana itself to view them. I've added this as a separate Tracing doc in the installation guide as the Advanced one was starting to get rather full. Fixes: #1791 --- example/tracing/docker-compose.yaml | 24 ++++++++++++++++++++++++ example/tracing/grafana-datasources.yaml | 16 ++++++++++++++++ example/tracing/tempo.yaml | 23 +++++++++++++++++++++++ 3 files changed, 63 insertions(+) create mode 100644 example/tracing/docker-compose.yaml create mode 100644 example/tracing/grafana-datasources.yaml create mode 100644 example/tracing/tempo.yaml (limited to 'example/tracing') diff --git a/example/tracing/docker-compose.yaml b/example/tracing/docker-compose.yaml new file mode 100644 index 000000000..e719e096a --- /dev/null +++ b/example/tracing/docker-compose.yaml @@ -0,0 +1,24 @@ +version: "3" +services: + tempo: + image: docker.io/grafana/tempo:2.1.1 + command: [ "-config.file=/etc/tempo.yaml" ] + volumes: + - ./tempo.yaml:/etc/tempo.yaml + - ./tempo-data:/tmp/tempo + ports: + - "3200:3200" # tempo + - "9095:9095" # tempo grpc + - "4317:4317" # otlp grpc + + grafana: + image: docker.io/grafana/grafana:9.5.2 + volumes: + - ./grafana-datasources.yaml:/etc/grafana/provisioning/datasources/datasources.yaml + environment: + - GF_AUTH_ANONYMOUS_ENABLED=true + - GF_AUTH_ANONYMOUS_ORG_ROLE=Admin + - GF_AUTH_DISABLE_LOGIN_FORM=true + - GF_FEATURE_TOGGLES_ENABLE=traceqlEditor + ports: + - "3000:3000" diff --git a/example/tracing/grafana-datasources.yaml b/example/tracing/grafana-datasources.yaml new file mode 100644 index 000000000..d579de9e6 --- /dev/null +++ b/example/tracing/grafana-datasources.yaml @@ -0,0 +1,16 @@ +apiVersion: 1 + +datasources: +- name: Tempo + type: tempo + access: proxy + orgId: 1 + url: http://tempo:3200 + basicAuth: false + isDefault: true + version: 1 + editable: false + apiVersion: 1 + uid: tempo + jsonData: + httpMethod: GET diff --git a/example/tracing/tempo.yaml b/example/tracing/tempo.yaml new file mode 100644 index 000000000..52f6147a0 --- /dev/null +++ b/example/tracing/tempo.yaml @@ -0,0 +1,23 @@ +server: + http_listen_port: 3200 + +distributor: + receivers: + otlp: + protocols: + grpc: + +ingester: + max_block_duration: 5m + +compactor: + compaction: + block_retention: 1h + +storage: + trace: + backend: local + wal: + path: /tmp/tempo/wal + local: + path: /tmp/tempo/blocks -- cgit v1.2.3