1
0
Fork 0
mirror of https://github.com/ossrs/srs.git synced 2025-03-09 15:49:59 +00:00

Log: Support write log to tencentcloud CLS. v5.0.44

This commit is contained in:
winlin 2022-08-07 12:11:37 +08:00
parent 3da0b57121
commit 95cd0e84eb
15 changed files with 1631 additions and 7 deletions

View file

@ -175,6 +175,56 @@ circuit_breaker {
dying_pulse 5;
}
# TencentCloud CLS config, logging to cloud.
# See https://cloud.tencent.com/document/product/614/11254
tencentcloud_cls {
# Whether heartbeat is enabled.
# Overwrite by env SRS_TENCENTCLOUD_CLS_ENABLED
# default: off
enabled off;
# The logging label to category the cluster servers.
# Overwrite by env SRS_TENCENTCLOUD_CLS_LABEL
label cn-beijing;
# The logging tag to category the cluster servers.
# Overwrite by env SRS_TENCENTCLOUD_CLS_TAG
tag cn-edge;
# The SecretId to access CLS service, see https://console.cloud.tencent.com/cam/capi
# Overwrite by env SRS_TENCENTCLOUD_CLS_SECRET_ID
secret_id AKIDxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx;
# The SecretKey to access CLS service, see https://console.cloud.tencent.com/cam/capi
# Overwrite by env SRS_TENCENTCLOUD_CLS_SECRET_KEY
secret_key xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx;
# The endpoint of CLS, format as <Region>.cls.tencentcs.com. For example:
# ap-guangzhou.cls.tencentcs.com
# Note that tencentyun.com is for internal network, while tencentcs.com is for public internet.
# See https://cloud.tencent.com/document/product/614/18940
# Overwrite by env SRS_TENCENTCLOUD_CLS_ENDPOINT
endpoint ap-guangzhou.cls.tencentcs.com;
# The topic ID of CLS, see https://cloud.tencent.com/document/product/614/41035
# Overwrite by env SRS_TENCENTCLOUD_CLS_TOPIC_ID
topic_id xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx;
# Whether enable logging for each log sending.
# Overwrite by env SRS_TENCENTCLOUD_CLS_DEBUG_LOGGING
# Default: off
debug_logging off;
# Whether enable the heartbeat stat every (5 * heartbeat_ratio)s.
# Overwrite by env SRS_TENCENTCLOUD_CLS_STAT_HEARTBEAT
# Default: on
stat_heartbeat on;
# Setup the heartbeat interval ratio, 1 means 5s, 2 means 10s, etc.
# Overwrite by env SRS_TENCENTCLOUD_CLS_HEARTBEAT_RATIO
# Default: 1
heartbeat_ratio 1;
# Whether enable the streams stat every (5 * streams_ratio)s.
# Overwrite by env SRS_TENCENTCLOUD_CLS_STAT_STREAMS
# Default: on
stat_streams on;
# Setup the streams interval ratio, 1 means 5s, 2 means 10s, etc.
# Overwrite by env SRS_TENCENTCLOUD_CLS_STREAMS_RATIO
# Default: 1
streams_ratio 1;
}
#############################################################################################
# heartbeat/stats sections
#############################################################################################