Skip to content

Commit 9dc61ce

Browse files
committed
add simple OpenTelemetry/Grafana stack
1 parent cf76392 commit 9dc61ce

File tree

6 files changed

+1733
-0
lines changed

6 files changed

+1733
-0
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,3 +41,5 @@
4141

4242
/node_modules
4343
/.yarn
44+
45+
/volumes/tempo/data/*

compose.dev.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
services:
2+
grafana:
3+
image: grafana/grafana:10.4.2
4+
ports:
5+
- "3001:3000"
6+
environment:
7+
- GF_AUTH_ANONYMOUS_ENABLED=true
8+
- GF_AUTH_ANONYMOUS_ORG_ROLE=Admin
9+
volumes:
10+
- ./volumes/grafana/grafana.ini:/etc/grafana/grafana.ini
11+
- ./volumes/grafana/provisioning:/etc/grafana/provisioning
12+
13+
tempo:
14+
image: grafana/tempo:2.4.1
15+
command: [ "-config.file=/etc/tempo.yaml" ]
16+
ports:
17+
- "3200:3200" # tempo metrics
18+
- "4317:4317" # otlp http
19+
volumes:
20+
- ./volumes/tempo/tempo.yml:/etc/tempo.yaml
21+
- ./volumes/tempo/data:/tmp/tempo
22+
23+
otel-collector:
24+
image: otel/opentelemetry-collector:0.98.0
25+
command: [ "--config=/etc/otelcol-config.yml" ]
26+
volumes:
27+
- ./volumes/otelcol-config.yml:/etc/otelcol-config.yml
28+
ports:
29+
- "4318:4318" # OTLP over HTTP receiver

0 commit comments

Comments
 (0)