-
Notifications
You must be signed in to change notification settings - Fork 83
/
docker-compose-java-host.yml
79 lines (75 loc) · 2.42 KB
/
docker-compose-java-host.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
version: '3.8'
services:
testserver:
image: ghcr.io/grafana/beyla-test/greeting-java${JAVA_TEST_MODE}/0.0.1
ports:
- "8086:8085"
environment:
LOG_LEVEL: DEBUG
autoinstrumenter:
build:
context: ../..
dockerfile: ./test/integration/components/beyla/Dockerfile
volumes:
- ./configs/:/configs
- ./system/sys/kernel/security:/sys/kernel/security
- ../../testoutput:/coverage
- ../../testoutput/run:/var/run/beyla
image: hatest-javaautoinstrumenter
privileged: true # in some environments (not GH Pull Requests) you can set it to false and then cap_add: [ SYS_ADMIN ]
network_mode: "host"
pid: "host"
environment:
BEYLA_CONFIG_PATH: "/configs/instrumenter-config-java-host.yml"
GOCOVERDIR: "/coverage"
BEYLA_PRINT_TRACES: "true"
BEYLA_OPEN_PORT: "${JAVA_OPEN_PORT}"
BEYLA_EXECUTABLE_NAME: "${JAVA_EXECUTABLE_NAME}"
BEYLA_SYSTEM_WIDE: "${BEYLA_SYSTEM_WIDE}"
OTEL_SERVICE_NAME: "${OTEL_SERVICE_NAME}"
BEYLA_SERVICE_NAMESPACE: "integration-test"
BEYLA_METRICS_INTERVAL: "10ms"
BEYLA_BPF_BATCH_TIMEOUT: "10ms"
BEYLA_LOG_LEVEL: "DEBUG"
BEYLA_BPF_DEBUG: "TRUE"
BEYLA_METRICS_REPORT_TARGET: "true"
BEYLA_METRICS_REPORT_PEER: "true"
BEYLA_HOSTNAME: "beyla"
ports:
- "8999:8999" # Prometheus scrape port, if enabled via config
# OpenTelemetry Collector
otelcol:
image: otel/opentelemetry-collector-contrib:0.85.0
container_name: otel-col
deploy:
resources:
limits:
memory: 125M
restart: unless-stopped
command: [ "--config=/etc/otelcol-config/otelcol-config.yml" ]
volumes:
- ./configs/:/etc/otelcol-config
ports:
- "4317" # OTLP over gRPC receiver
- "4318:4318" # OTLP over HTTP receiver
- "9464" # Prometheus exporter
- "8888" # metrics endpoint
depends_on:
autoinstrumenter:
condition: service_started
prometheus:
condition: service_started
# Prometheus
prometheus:
image: quay.io/prometheus/prometheus:v2.46.0
container_name: prometheus
command:
- --storage.tsdb.retention.time=1m
- --config.file=/etc/prometheus/prometheus-config.yml
- --storage.tsdb.path=/prometheus
- --web.enable-lifecycle
- --web.route-prefix=/
volumes:
- ./configs/:/etc/prometheus
ports:
- "9090:9090"