mirror of
https://github.com/rustfs/rustfs.git
synced 2026-08-27 15:37:02 +00:00
upgrade config
This commit is contained in:
@@ -13,25 +13,29 @@ services:
|
|||||||
RUST_LOG: "info"
|
RUST_LOG: "info"
|
||||||
ports:
|
ports:
|
||||||
- "5080:5080"
|
- "5080:5080"
|
||||||
|
- "5081:5081"
|
||||||
volumes:
|
volumes:
|
||||||
- ./data:/data
|
- ./data:/data
|
||||||
healthcheck:
|
healthcheck:
|
||||||
test: [ "CMD", "curl", "-f", "http://localhost:5080/health" ]
|
test: [ "CMD", "curl", "-f", "http://localhost:5080/health" ]
|
||||||
|
start_period: 60s
|
||||||
interval: 10s
|
interval: 10s
|
||||||
timeout: 2s
|
timeout: 5s
|
||||||
retries: 3
|
retries: 6
|
||||||
networks:
|
networks:
|
||||||
- otel-network
|
- otel-network
|
||||||
deploy:
|
deploy:
|
||||||
resources:
|
resources:
|
||||||
limits:
|
limits:
|
||||||
memory: 512M
|
memory: 1024M
|
||||||
reservations:
|
reservations:
|
||||||
memory: 256M
|
memory: 512M
|
||||||
|
|
||||||
otel-collector:
|
otel-collector:
|
||||||
image: otel/opentelemetry-collector-contrib:latest
|
image: otel/opentelemetry-collector-contrib:latest
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
|
environment:
|
||||||
|
- TZ=Asia/Shanghai
|
||||||
volumes:
|
volumes:
|
||||||
- ./otel-collector-config.yaml:/etc/otelcol-contrib/config.yaml
|
- ./otel-collector-config.yaml:/etc/otelcol-contrib/config.yaml
|
||||||
ports:
|
ports:
|
||||||
@@ -48,9 +52,9 @@ services:
|
|||||||
deploy:
|
deploy:
|
||||||
resources:
|
resources:
|
||||||
limits:
|
limits:
|
||||||
memory: 400M
|
memory: 10240M
|
||||||
reservations:
|
reservations:
|
||||||
memory: 200M
|
memory: 512M
|
||||||
|
|
||||||
networks:
|
networks:
|
||||||
otel-network:
|
otel-network:
|
||||||
|
|||||||
@@ -25,16 +25,24 @@ exporters:
|
|||||||
Authorization: "Bearer cm9vdEBydXN0ZnMuY29tOmxIV0RqQmZMWXJ6MnZOajU="
|
Authorization: "Bearer cm9vdEBydXN0ZnMuY29tOmxIV0RqQmZMWXJ6MnZOajU="
|
||||||
stream-name: default
|
stream-name: default
|
||||||
organization: default
|
organization: default
|
||||||
tls:
|
|
||||||
insecure: true
|
|
||||||
compression: gzip
|
compression: gzip
|
||||||
retry_on_failure:
|
retry_on_failure:
|
||||||
enabled: true
|
enabled: true
|
||||||
initial_interval: 5s
|
initial_interval: 5s
|
||||||
max_interval: 30s
|
max_interval: 30s
|
||||||
max_elapsed_time: 300s
|
max_elapsed_time: 300s
|
||||||
|
timeout: 10s
|
||||||
|
|
||||||
|
extensions:
|
||||||
|
health_check:
|
||||||
|
endpoint: 0.0.0.0:13133
|
||||||
|
pprof:
|
||||||
|
endpoint: 0.0.0.0:1777
|
||||||
|
zpages:
|
||||||
|
endpoint: 0.0.0.0:55679
|
||||||
|
|
||||||
service:
|
service:
|
||||||
|
extensions: [ health_check, pprof, zpages ]
|
||||||
pipelines:
|
pipelines:
|
||||||
traces:
|
traces:
|
||||||
receivers: [ otlp ]
|
receivers: [ otlp ]
|
||||||
@@ -48,11 +56,8 @@ service:
|
|||||||
receivers: [ otlp, filelog ]
|
receivers: [ otlp, filelog ]
|
||||||
processors: [ memory_limiter, batch ]
|
processors: [ memory_limiter, batch ]
|
||||||
exporters: [ otlphttp/openobserve ]
|
exporters: [ otlphttp/openobserve ]
|
||||||
extensions:
|
telemetry:
|
||||||
health_check:
|
logs:
|
||||||
endpoint: 0.0.0.0:13133
|
level: "info" # Collector 日志级别
|
||||||
pprof:
|
metrics:
|
||||||
endpoint: 0.0.0.0:1777
|
address: "0.0.0.0:8888" # Collector 自身指标暴露
|
||||||
zpages:
|
|
||||||
endpoint: 0.0.0.0:55679
|
|
||||||
|
|
||||||
|
|||||||
+2
-1
@@ -16,4 +16,5 @@ deploy/certs/*
|
|||||||
.env
|
.env
|
||||||
.rustfs.sys
|
.rustfs.sys
|
||||||
.cargo
|
.cargo
|
||||||
profile.json
|
profile.json
|
||||||
|
.docker/openobserve-otel/data
|
||||||
Reference in New Issue
Block a user