123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102 |
- 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
- 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
- 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
- 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
|