Repository navigation
Expand file tree
/
Copy pathcompose.logging.yaml
More file actions
115 lines (108 loc) · 3.68 KB
/
Copy pathcompose.logging.yaml
File metadata and controls
115 lines (108 loc) · 3.68 KB
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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
name: openclaw-enterprise-development
x-otel-fluentd-logging: &otel-fluentd-logging
driver: fluentd
options:
fluentd-address: ${OCC_DOCKER_LOGGING_ADDRESS:-127.0.0.1:24224}
fluentd-async: "true"
fluentd-buffer-limit: "1024"
fluentd-retry-wait: "1s"
fluentd-max-retries: "3"
fluentd-sub-second-precision: "true"
fluentd-write-timeout: "1s"
mode: non-blocking
max-buffer-size: 1m
cache-disabled: "false"
cache-max-size: 10m
cache-max-file: "2"
cache-compress: "true"
labels: org.openclaw.enterprise.managed,org.openclaw.enterprise.role,org.openclaw.enterprise.namespace-id,org.openclaw.enterprise.agent-id,org.openclaw.enterprise.revision-id,org.openclaw.enterprise.version,com.docker.compose.service,com.docker.compose.project
env: NODE_ENV
tag: openclaw-enterprise.{{.Name}}
services:
collector:
image: docker.io/otel/opentelemetry-collector-contrib:0.159.0@sha256:1f2c54a30e713fac6b3ae77a1ec84010c2007e29ced8ec666214fc2f6739c1cc
user: "0:0"
read_only: true
cap_drop:
- ALL
security_opt:
- no-new-privileges:true
mem_limit: 384m
command:
- --config=/etc/otel/collector.yaml
- --config=/etc/otel/receiver.yaml
- --config=/etc/otel/exporter.yaml
environment:
OTEL_EXPORTER_OTLP_LOGS_ENDPOINT: ${OTEL_EXPORTER_OTLP_LOGS_ENDPOINT:?Set OTEL_EXPORTER_OTLP_LOGS_ENDPOINT for the logging Collector}
ports:
- "127.0.0.1:${OTEL_COLLECTOR_PORT:-24224}:24224"
- "127.0.0.1:${OTEL_COLLECTOR_METRICS_PORT:-8888}:8888"
volumes:
- ./deploy/logging/collector.yaml:/etc/otel/collector.yaml:ro,Z
- ./deploy/logging/docker.yaml:/etc/otel/receiver.yaml:ro,Z
- ./deploy/logging/exporter.yaml:/etc/otel/exporter.yaml:ro,Z
- occ_otelcol_data:/var/lib/otelcol
logging:
driver: local
options:
max-size: 10m
max-file: "2"
compress: "true"
networks:
development:
migrate:
environment:
OCC_CONFIG_PATH: /etc/openclaw/occ.yaml
labels:
org.openclaw.enterprise.managed: "true"
org.openclaw.enterprise.role: migrate
org.openclaw.enterprise.version: 0.1.0
logging: *otel-fluentd-logging
volumes:
- ./deploy/logging/occ.yaml:/etc/openclaw/occ.yaml:ro,z
depends_on:
collector:
condition: service_started
controller:
environment:
OCC_CONFIG_PATH: /etc/openclaw/occ.yaml
OCC_DOCKER_LOGGING_ADDRESS: ${OCC_DOCKER_LOGGING_ADDRESS:-127.0.0.1:24224}
labels:
org.openclaw.enterprise.managed: "true"
org.openclaw.enterprise.role: controller
org.openclaw.enterprise.version: 0.1.0
logging: *otel-fluentd-logging
volumes:
- ./deploy/logging/occ.yaml:/etc/openclaw/occ.yaml:ro,z
depends_on:
collector:
condition: service_started
bootstrap:
environment:
OCC_CONFIG_PATH: /etc/openclaw/occ.yaml
labels:
org.openclaw.enterprise.managed: "true"
org.openclaw.enterprise.role: bootstrap
org.openclaw.enterprise.version: 0.1.0
logging: *otel-fluentd-logging
volumes:
- ./deploy/logging/occ.yaml:/etc/openclaw/occ.yaml:ro,z
depends_on:
collector:
condition: service_started
worker:
environment:
OCC_CONFIG_PATH: /etc/openclaw/occ.yaml
OCC_DOCKER_LOGGING_ADDRESS: ${OCC_DOCKER_LOGGING_ADDRESS:-127.0.0.1:24224}
labels:
org.openclaw.enterprise.managed: "true"
org.openclaw.enterprise.role: worker
org.openclaw.enterprise.version: 0.1.0
logging: *otel-fluentd-logging
volumes:
- ./deploy/logging/occ.yaml:/etc/openclaw/occ.yaml:ro,z
depends_on:
collector:
condition: service_started
volumes:
occ_otelcol_data: