Files

25 lines
912 B
YAML
Raw Permalink Normal View History

2024-04-19 22:23:08 +08:00
prometheus:
2024-04-24 15:42:43 +08:00
# Enable or disable Prometheus monitoring
2024-04-19 22:23:08 +08:00
enable: true
2024-12-10 11:43:19 +08:00
# autoSetPorts indicates whether to automatically set the ports
autoSetPorts: true
2024-04-24 15:42:43 +08:00
# List of ports that Prometheus listens on; each port corresponds to an instance of monitoring. Ensure these are managed accordingly
2024-12-10 11:43:19 +08:00
# It will only take effect when autoSetPorts is set to false.
2024-12-18 18:10:25 +08:00
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 01000 (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