mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-10-24 12:02:14 +08:00
25 lines
912 B
YAML
25 lines
912 B
YAML
prometheus:
|
||
# Enable or disable Prometheus monitoring
|
||
enable: true
|
||
# autoSetPorts indicates whether to automatically set the ports
|
||
autoSetPorts: true
|
||
# List of ports that Prometheus listens on; each port corresponds to an instance of monitoring. Ensure these are managed accordingly
|
||
# It will only take effect when autoSetPorts is set to false.
|
||
ports:
|
||
|
||
ratelimiter:
|
||
# Whether to enable rate limiting
|
||
enable: false
|
||
# WindowSize defines time duration per window
|
||
window: 20s
|
||
# BucketNum defines bucket number for each window
|
||
bucket: 500
|
||
# CPU threshold; valid range 0–1000 (1000 = 100%)
|
||
cpuThreshold: 850
|
||
|
||
circuitBreaker:
|
||
enable: false
|
||
window: 5s # Time window size (seconds)
|
||
bucket: 100 # Number of buckets
|
||
success: 0.6 # Success rate threshold (0.6 means 60%)
|
||
request: 500 # Request threshold; circuit breaker evaluation occurs when reached |