Skip to content

Commit 9bc6d2e

Browse files
committed
tempo and grafana done
1 parent dc7d000 commit 9bc6d2e

File tree

4 files changed

+83
-1
lines changed

4 files changed

+83
-1
lines changed

api-gateway/docker-compose.yml

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,4 +42,25 @@ services:
4242
volumes:
4343
- ./docker/prometheus/prometheus.yml:/etc/prometheus/prometheus.yml:ro
4444
ports:
45-
- '9090:9090'
45+
- '9090:9090'
46+
47+
tempo:
48+
image: grafana/tempo:2.2.2
49+
command: [ '-config.file=/etc/tempo.yaml' ]
50+
volumes:
51+
- ./docker/tempo/tempo.yml:/etc/tempo.yaml:ro
52+
- ./docker/tempo/tempo-data:/tmp/tempo
53+
ports:
54+
- '3110:3100' # Tempo
55+
- '9411:9411' # zipkin
56+
57+
grafana:
58+
image: grafana/grafana:10.1.0
59+
volumes:
60+
- ./docker/grafana:/etc/grafana/provisioning/datasources:ro
61+
environment:
62+
- GF_AUTH_ANONYMOUS_ENABLED=true
63+
- GF_AUTH_ANONYMOUS_ORG_ROLE=Admin
64+
- GF_AUTH_DISABLE_LOGIN_FORM=true
65+
ports:
66+
- '3000:3000'
Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
apiVersion: 1
2+
3+
datasources:
4+
- name: Prometheus
5+
type: prometheus
6+
access: proxy
7+
url: http://prometheus:9090
8+
editable: false
9+
jsonData:
10+
httpMethod: POST
11+
exemplarTraceIdDestinations:
12+
- name: trace_id
13+
datasourceUid: tempo
14+
- name: Tempo
15+
type: tempo
16+
access: proxy
17+
orgId: 1
18+
url: http://tempo:3200
19+
basicAuth: false
20+
isDefault: true
21+
version: 1
22+
editable: false
23+
apiVersion: 1
24+
uid: tempo
25+
jsonData:
26+
httpMethod: GET
27+
tracesToLogs:
28+
datasourceUid: 'loki'
29+
nodeGraph:
30+
enabled: true
31+
- name: Loki
32+
type: loki
33+
uid: loki
34+
access: proxy
35+
orgId: 1
36+
url: http://loki:3100
37+
basicAuth: false
38+
isDefault: false
39+
version: 1
40+
editable: false
41+
apiVersion: 1
42+
jsonData:
43+
derivedFields:
44+
- datasourceUid: tempo
45+
matcherRegex: \[.+,(.+?),
46+
name: TraceID
47+
url: $${__value.raw}

api-gateway/docker/temp/tempo.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
server:
2+
http_listen_port: 3200
3+
4+
distributor:
5+
receivers:
6+
zipkin:
7+
8+
storage:
9+
trace:
10+
backend: local
11+
local:
12+
path: /tmp/tempo/blocks
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
package com.nipundas.product_service.config;public class ObservationConfig {
2+
}

0 commit comments

Comments
 (0)