50 lines
934 B
YAML
50 lines
934 B
YAML
mode: "local"
|
|
port: "8080"
|
|
log_level: "info"
|
|
|
|
database:
|
|
driver: "sqlite"
|
|
host: "localhost"
|
|
port: 3306
|
|
user: ""
|
|
password: ""
|
|
dbname: "sqlite3.db"
|
|
charset: "utf8mb4"
|
|
max_conn: 100
|
|
max_idle: 10
|
|
|
|
redis:
|
|
host: "localhost"
|
|
port: 6379
|
|
driver: "redka"
|
|
password: ""
|
|
db: 0
|
|
|
|
jwt:
|
|
secret: "aiops-local-dev-secret-change-in-production"
|
|
expire_hour: 24
|
|
|
|
# Agent 凭证和高频数据保留策略。生产环境请通过独立配置或环境变量覆盖。 // Logan.Li
|
|
agent:
|
|
enforce_auth: false
|
|
|
|
retention:
|
|
agent_reports_days: 7
|
|
metric_history_days: 30
|
|
metric_aggregate_days: 365
|
|
snmp_samples_days: 30
|
|
site_results_days: 30
|
|
log_entries_days: 30
|
|
cleanup_batch_size: 10000
|
|
|
|
# 云账单统一折算口径:汇率表示 1 单位原币折合多少 CNY。 // Logan.Li
|
|
billing:
|
|
base_currency: "CNY"
|
|
exchange_rates:
|
|
CNY: 1
|
|
USD: 7.2
|
|
|
|
websocket:
|
|
read_buffer_size: 1024
|
|
write_buffer_size: 1024
|