Skip to content

Commit c9b2f0a

Browse files
authored
Merge pull request #5 from BetterStackHQ/dk/beyla-exclude-collector-services
Exclude vector + already instrumented services from Beyla
2 parents 134aa9b + 77dd888 commit c9b2f0a

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

docker-compose.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,13 @@
11
configs:
22
beyla.yaml:
33
content: |
4+
discovery:
5+
services:
6+
- open_ports: "1-65535"
7+
8+
exclude_services:
9+
- exe_path: ".*/vector$"
10+
411
otel_metrics_export:
512
features:
613
- application
@@ -57,14 +64,10 @@ services:
5764
# Override OTLP endpoint to point to collector container
5865
- OTEL_EXPORTER_OTLP_ENDPOINT=http://localhost:34320
5966
- OTEL_EXPORTER_OTLP_PROTOCOL=http/protobuf
60-
- BEYLA_OPEN_PORT=1-65535
61-
- BEYLA_EXCLUDE_OTEL_INSTRUMENTED_SERVICES=false
6267
- BEYLA_BPF_CONTEXT_PROPAGATION=all
6368
- BEYLA_BPF_TRACK_REQUEST_HEADERS=true
6469
- BEYLA_METRICS_INTERVAL=15s
6570
- BEYLA_CONFIG_PATH=/etc/beyla/beyla.yaml
66-
# Set service name so we can monitor Beyla itself
67-
- OTEL_SERVICE_NAME=better-stack-collector-beyla
6871
configs:
6972
- source: beyla.yaml
7073
target: /etc/beyla/beyla.yaml

0 commit comments

Comments
 (0)