apiVersion: v1 kind: ConfigMap metadata: name: ob-server-settings namespace: observe data: settings.yaml: | server: http: addr: 0.0.0.0:8000 timeout: 100s jwt: secret: hFj50izBbnDK1UFueTHh debug: true grpc: addr: 0.0.0.0:9000 timeout: 1s data: mysql: driver: mysql source: root:pg3mfWRtYonekZWB@tcp(mysql-primary.observe.svc.cluster.local:3306)/observe?charset=utf8mb4&parseTime=True&loc=Local mysqlro: driver: mysql source: root:pg3mfWRtYonekZWB@tcp(mysql-secondary.observe.svc.cluster.local:3306)/observe?charset=utf8mb4&parseTime=True&loc=Local # source: root:pg3mfWRtYonekZWB@tcp(mysql-primary.observe.svc.cluster.local:3306)/observe?charset=utf8mb4&parseTime=True&loc=Local clickhouse: driver: clickhouse source: clickhouse://default:cecf@cestong.com@clickhouse.observe.svc.cluster.local:9000/otel?dial_timeout=10s&max_execution_time=60 redis: addr: redis-headless.observe.svc.cluster.local:6379 password: gGY16H69Wjr6 read_timeout: 0.2s write_timeout: 0.2s otel: exporter: endpoint: otel-collector-opentelemetry-collector.observe.svc.cluster.local:4318 # endpoint: "" settings: application: mode: test host: 0.0.0.0 name: testApp port: 8000 # 服务端口号 readtimeout: 1 writertimeout: 2 enabledp: false logger: path: temp/logs stdout: '' #控制台日志,启用后,不输出到文件 # level: trace level: info enableddb: false jwt: secret: hFj50izBbnDK1UFueTHh timeout: 3600 database: driver: mysql source: root:pg3mfWRtYonekZWB@tcp(mysql-primary.observe.svc.cluster.local:3306)/observe?charset=utf8&parseTime=True&loc=Local&timeout=1000ms databases: '*': driver: mysql # source: root:pg3mfWRtYonekZWB@tcp(103.29.16.7:31511)/observe?charset=utf8&parseTime=True&loc=Local&timeout=10000ms source: root:pg3mfWRtYonekZWB@tcp(mysql-primary.observe.svc.cluster.local:3306)/observe?charset=utf8&parseTime=True&loc=Local&timeout=1000ms 'pg': driver: postgres # source: "host=103.29.16.7 user=postgres password=cecf@cestong.com dbname=ob_metrics port=32169 sslmode=disable TimeZone=Asia/Shanghai" source: "host=timescaledb.db.svc.cluster.local user=postgres password=cecf@cestong.com dbname=ob_metrics port=5432 sslmode=disable TimeZone=Asia/Shanghai" 'ck': driver: clickhouse # source: "clickhouse://default:cecf@cestong.com@103.29.16.7:30367/otel?dial_timeout=10s&max_execution_time=60" source: clickhouse://default:cecf@cestong.com@clickhouse.observe.svc.cluster.local:9000/otel?dial_timeout=10s&max_execution_time=60 gen: dbname: dbname frontpath: ../go-admin-ui/src cache: memory: '' redis: # addr: 101.201.227.126:30079 addr: redis-headless.observe.svc.cluster.local:6379 password: gGY16H69Wjr6 queue: memory: poolSize: 100 locker: redis: extend: # 扩展配置 clickhouseMetrics: true olapdb: driver: clickhouse addr: clickhouse.observe.svc.cluster.local:9000 debug: true database: otel username: default password: cecf@cestong.com maxOpenConns: 10 maxIdleConns: 5 kafka: brokers: - kafka-broker-headless.observe.svc.cluster.local:9092 #- 172.24.100.101:32400 #- 172.24.100.101:32401 #- 172.24.100.101:32402 #- 101.201.227.126:32402 topic: otelproto consumers: 6 maxConcurrency: 100 prometheus: address: http://prometheus-server.observe.svc.cluster.local:80 otel: common: serviceName: "observe-server" serviceVersion: "1.0.0" # endpoint: otel-collector.cestong.com.cn:80 endpoint: otel-collector-opentelemetry-collector.observe.svc.cluster.local:4318 grpcEndpoint: otel-collector-opentelemetry-collector.observe.svc.cluster.local:4317 metrics: 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: "所属系统:{{app_name}}\n事件名称:{{events_name}}\n事件创建时间:{{date_time}}\n事件描述:{{events}}" sqlRecord: true