Files
open-im-server/config/openim-api.yml
T

30 lines
1.0 KiB
YAML
Raw Normal View History

2024-04-19 22:23:08 +08:00
api:
# Listening IP; 0.0.0.0 means both internal and external IPs are listened to, default is recommended
listenIP: 0.0.0.0
# Listening ports; if multiple are configured, multiple instances will be launched, must be consistent with the number of prometheus.ports
ports: [ 10002 ]
2024-09-11 16:48:34 +08:00
# API compression level; 0: default compression, 1: best compression, 2: best speed, -1: no compression
compressionLevel: 0
2024-04-19 22:23:08 +08:00
prometheus:
# Whether to enable prometheus
enable: true
2024-12-10 11:43:19 +08:00
# autoSetPorts indicates whether to automatically set the ports
autoSetPorts: true
2024-04-19 22:23:08 +08:00
# Prometheus listening ports, must match the number of api.ports
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:
2024-04-19 22:23:08 +08:00
# This address can be accessed via a browser
grafanaURL:
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