settings: application: # dev开发环境 test测试环境 prod线上环境 mode: dev # 服务器ip,默认使用 0.0.0.0 host: 0.0.0.0 # 服务名称 name: observe-server # 端口号 port: 8000 # 服务端口号 readtimeout: 1 writertimeout: 2 # 数据权限功能开关 enabledp: false logger: # 日志存放路径 path: temp/logs # 日志输出,file:文件,default:命令行,其他:命令行 stdout: "" #控制台日志,启用后,不输出到文件 # 日志等级, trace, debug, info, warn, error, fatal level: debug # 数据库日志开关 enableddb: false jwt: # token 密钥,生产环境时及的修改 secret: hFj50izBbnDK1UFueTHh # token 过期时间 单位:秒 timeout: 3600 database: # 数据库类型 mysql, sqlite3, postgres, sqlserver # sqlserver: sqlserver://用户名:密码@地址?database=数据库名 driver: mysql # 数据库连接字符串 mysql 缺省信息 charset=utf8&parseTime=True&loc=Local&timeout=1000ms source: root:pg3mfWRtYonekZWB@tcp(172.24.100.101:31511)/observe?charset=utf8&parseTime=True&loc=Local&timeout=10000ms # databases: # 'locaohost:8000': # driver: mysql # # 数据库连接字符串 mysql 缺省信息 charset=utf8&parseTime=True&loc=Local&timeout=1000ms # source: user:password@tcp(127.0.0.1:3306)/dbname?charset=utf8&parseTime=True&loc=Local&timeout=1000ms # registers: # - sources: # - user:password@tcp(127.0.0.1:3306)/dbname?charset=utf8&parseTime=True&loc=Local&timeout=1000ms gen: # 代码生成读取的数据库名称 dbname: observe # 代码生成是使用前端代码存放位置,需要指定到src文件夹,相对路径 frontpath: ../go-admin-ui/src cache: redis: addr: 172.24.100.101:30079 password: gGY16H69Wjr6 # db: 2 # key存在即可 memory: "" queue: memory: poolSize: 100 # redis: # addr: 127.0.0.1:6379 # password: xxxxxx # producer: # streamMaxLength: 100 # approximateMaxLength: true # consumer: # visibilityTimeout: 60 # bufferSize: 100 # concurrency: 10 # blockingTimeout: 5 # reclaimInterval: 1 locker: redis: addr: 127.0.0.1:36379 extend: # 扩展配置 prometheus: address: http://prometheus.cestong.com.cn olapdb: driver: clickhouse addr: 172.24.100.101:30367 debug: true database: otel username: default password: cecf@cestong.com maxOpenConns: 10 maxIdleConns: 5 kafka: brokers: - 172.24.100.101:30400 - 172.24.100.101:30401 - 172.24.100.101:30402 topic: otel consumers: 3 maxConcurrency: 20 # metricsGroupId: "observe-consumer-metrics-group" otel: common: serviceName: "observe-server" serviceVersion: "1.0.0" endpoint: otel-collector.cestong.com.cn:80 metrics: # endpoint: http://otel-collector.cestong.com.cn/v1/metrics endpoint: otel-collector.cestong.com.cn:80 interval: 60 # 收集间隔,60s smsconfig: appKey: "95598109" appSecret: "VXX8H0MzT7" url: "http://msa.zs.test.js.sgcc.com.cn/jssms/api/sendsmsbatch" appsGroup: "opentelemetry-demo:18611342234,18722341127;demo:18511342234,18622341127" smsTpl: "【江苏省电力公司\n所属系统:{{app_alias}}\n事件名称:{{events_name}}\n事件创建时间:{{date_time}}\n事件描述:{{events}}" # sqlRecord: False