Skip to content

Commit e230459

Browse files
committed
update observability stack
1 parent b098557 commit e230459

File tree

5 files changed

+48
-39
lines changed

5 files changed

+48
-39
lines changed

docs/references.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,10 +47,13 @@
4747
- [OpenTelemetry](https://opentelemetry.io/)
4848
- [Python / Getting Started](https://opentelemetry.io/docs/languages/python/getting-started/)
4949
- [Python / Cookbook](https://opentelemetry.io/docs/languages/python/cookbook/)
50-
- [OpenTelemetry Collector](https://opentelemetry.io//docs/collector/)
50+
- [OpenTelemetry Collector](https://opentelemetry.io//docs/collector/)
51+
- [OpenTelemetry Collector / Quick Start](https://opentelemetry.io/docs/collector/quick-start/)
52+
- [zPages / Exposed zPages routes](https://github.com/open-telemetry/opentelemetry-collector/blob/v0.132.0/extension/zpagesextension/README.md#exposed-zpages-routes)
5153
- [Jaeger](https://www.jaegertracing.io/)
5254
- [Jaeger / Minimal deployment example (Elasticsearch backend)](https://www.jaegertracing.io/docs/1.72/deployment/#minimal-deployment-example-elasticsearch-backend)
53-
- [OpenTelemetry Collector / Quick Start](https://opentelemetry.io/docs/collector/quick-start/)
55+
- [Prometheus](https://prometheus.io/)
56+
- [Prometheus / Getting Started](https://prometheus.io/docs/prometheus/latest/getting_started/)
5457

5558
### n8n
5659

observability.docker-compose.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
services:
2+
prometheus:
3+
image: prom/prometheus:v3.5.0
4+
container_name: prometheus
5+
ports:
6+
- 9090:9090 # Prometheus UI
7+
volumes:
8+
- "./prometheus.yml:/etc/prometheus/prometheus.yml"
9+
- "./assets/prometheus_data:/prometheus"
10+
jaeger:
11+
image: jaegertracing/all-in-one:1.72.0
12+
container_name: jaeger
13+
ports:
14+
- 16686:16686 # Jaeger UI
15+
otel-collector:
16+
image: otel/opentelemetry-collector-contrib:0.133.0-nightly.6d46fb8
17+
container_name: otel-collector
18+
volumes:
19+
- ./otel-collector-config.yaml:/etc/otelcol-contrib/config.yaml
20+
ports:
21+
- 1888:1888 # pprof extension
22+
- 8888:8888 # Prometheus metrics exposed by the Collector
23+
- 8889:8889 # Prometheus exporter metrics
24+
- 13133:13133 # health_check extension
25+
- 4317:4317 # OTLP gRPC receiver
26+
- 4318:4318 # OTLP http receiver
27+
- 55679:55679 # zpages extension

otel-collector-config.yaml

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -45,24 +45,25 @@ processors:
4545
exporters:
4646
debug:
4747
verbosity: detailed
48+
otlp/jaeger:
49+
endpoint: jaeger:4317
50+
tls:
51+
insecure: true
52+
prometheusremotewrite:
53+
endpoint: prometheus:8889
4854

4955
service:
50-
5156
pipelines:
52-
5357
traces:
5458
receivers: [otlp, jaeger, zipkin]
5559
processors: [batch]
56-
exporters: [debug]
57-
60+
exporters: [debug, otlp/jaeger]
5861
metrics:
5962
receivers: [otlp, prometheus]
6063
processors: [batch]
61-
exporters: [debug]
62-
64+
exporters: [debug, prometheusremotewrite]
6365
logs:
6466
receivers: [otlp]
6567
processors: [batch]
6668
exporters: [debug]
67-
6869
extensions: [health_check, pprof, zpages]

prometheus.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
global:
2+
scrape_interval: 15s
3+
4+
scrape_configs:
5+
- job_name: 'prometheus'
6+
scrape_interval: 5s
7+
static_configs:
8+
- targets: ['localhost:9090']

tools.docker-compose.yml

Lines changed: 0 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -31,33 +31,3 @@ services:
3131
POSTGRES_PASSWORD: password
3232
POSTGRES_DB: db
3333
restart: always
34-
jaeger:
35-
image: jaegertracing/all-in-one:1.72.0
36-
container_name: jaeger
37-
environment:
38-
- SPAN_STORAGE_TYPE=elasticsearch
39-
- ES_SERVER_URLS=http://elasticsearch:9200
40-
- LOG_LEVEL=debug
41-
ports:
42-
- "16686:16686" # to access the Jaeger UI
43-
- "4317:4317"
44-
- "4318:4318"
45-
- "5778:5778"
46-
- "9411:9411"
47-
depends_on:
48-
- elasticsearch
49-
restart: unless-stopped
50-
# FIXME: disable for now since its port conflicts with jaeger
51-
# otel-collector:
52-
# image: otel/opentelemetry-collector-contrib:latest
53-
# container_name: otel-collector
54-
# volumes:
55-
# - ./otel-collector-config.yaml:/etc/otelcol-contrib/config.yaml
56-
# ports:
57-
# - 1888:1888 # pprof extension
58-
# - 8888:8888 # Prometheus metrics exposed by the Collector
59-
# - 8889:8889 # Prometheus exporter metrics
60-
# - 13133:13133 # health_check extension
61-
# - 4317:4317 # OTLP gRPC receiver
62-
# - 4318:4318 # OTLP http receiver
63-
# - 55679:55679 # zpages extension

0 commit comments

Comments
 (0)