mirror of
https://github.com/rustfs/rustfs.git
synced 2026-01-16 17:20:33 +00:00
improve signal watch
This commit is contained in:
27
deploy/config/.example.env
Normal file
27
deploy/config/.example.env
Normal file
@@ -0,0 +1,27 @@
|
||||
OBSERVABILITY__ENDPOINT=http://localhost:4317
|
||||
OBSERVABILITY__USE_STDOUT=true
|
||||
OBSERVABILITY__SAMPLE_RATIO=2.0
|
||||
OBSERVABILITY__METER_INTERVAL=30
|
||||
OBSERVABILITY__SERVICE_NAME=rustfs
|
||||
OBSERVABILITY__SERVICE_VERSION=0.1.0
|
||||
OBSERVABILITY__ENVIRONMENT=develop
|
||||
OBSERVABILITY__LOGGER_LEVEL=debug
|
||||
|
||||
SINKS__KAFKA__ENABLED=false
|
||||
SINKS__KAFKA__BOOTSTRAP_SERVERS=localhost:9092
|
||||
SINKS__KAFKA__TOPIC=logs
|
||||
SINKS__KAFKA__BATCH_SIZE=100
|
||||
SINKS__KAFKA__BATCH_TIMEOUT_MS=1000
|
||||
|
||||
SINKS__WEBHOOK__ENABLED=false
|
||||
SINKS__WEBHOOK__ENDPOINT=http://localhost:8080/webhook
|
||||
SINKS__WEBHOOK__AUTH_TOKEN=
|
||||
SINKS__WEBHOOK__BATCH_SIZE=100
|
||||
SINKS__WEBHOOK__BATCH_TIMEOUT_MS=1000
|
||||
|
||||
SINKS__FILE__ENABLED=true
|
||||
SINKS__FILE__PATH=./deploy/logs/app.log
|
||||
SINKS__FILE__BATCH_SIZE=10
|
||||
SINKS__FILE__BATCH_TIMEOUT_MS=1000
|
||||
|
||||
LOGGER__QUEUE_CAPACITY=10
|
||||
@@ -6,7 +6,7 @@ meter_interval = 30
|
||||
service_name = "rustfs"
|
||||
service_version = "0.1.0"
|
||||
environment = "develop"
|
||||
looger_level = "info"
|
||||
logger_level = "info"
|
||||
|
||||
[sinks]
|
||||
[sinks.kafka] # Kafka sink is disabled by default
|
||||
@@ -25,7 +25,7 @@ batch_timeout_ms = 1000 # Default is 100ms if not specified
|
||||
|
||||
[sinks.file]
|
||||
enabled = true
|
||||
path = "logs/app.log"
|
||||
path = "./deploy/logs/app.log"
|
||||
batch_size = 100
|
||||
batch_timeout_ms = 1000 # Default is 8192 bytes if not specified
|
||||
|
||||
|
||||
Reference in New Issue
Block a user