cm-settings.yaml 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  1. apiVersion: v1
  2. kind: ConfigMap
  3. metadata:
  4. name: ob-server-settings
  5. namespace: observe
  6. data:
  7. settings.yaml: |
  8. server:
  9. http:
  10. addr: 0.0.0.0:8000
  11. timeout: 100s
  12. jwt:
  13. secret: hFj50izBbnDK1UFueTHh
  14. grpc:
  15. addr: 0.0.0.0:9000
  16. timeout: 1s
  17. data:
  18. mysql:
  19. driver: mysql
  20. source: root:pg3mfWRtYonekZWB@tcp(mysql-primary.observe.svc.cluster.local:3306)/observe?charset=utf8mb4&parseTime=True&loc=Local
  21. mysqlro:
  22. driver: mysql
  23. # source: root:pg3mfWRtYonekZWB@tcp(mysql-secondary.observe.svc.cluster.local:3306)/observe?charset=utf8mb4&parseTime=True&loc=Local
  24. source: root:pg3mfWRtYonekZWB@tcp(mysql-primary.observe.svc.cluster.local:3306)/observe?charset=utf8mb4&parseTime=True&loc=Local
  25. clickhouse:
  26. driver: clickhouse
  27. source: clickhouse://default:cecf@cestong.com@clickhouse.observe.svc.cluster.local:9000/otel?dial_timeout=10s&max_execution_time=60
  28. redis:
  29. addr: redis-headless.observe.svc.cluster.local:6379
  30. password: gGY16H69Wjr6
  31. read_timeout: 0.2s
  32. write_timeout: 0.2s
  33. otel:
  34. exporter:
  35. endpoint: otel-collector-opentelemetry-collector.observe.svc.cluster.local:4318
  36. settings:
  37. application:
  38. mode: test
  39. host: 0.0.0.0
  40. name: testApp
  41. port: 8000 # 服务端口号
  42. readtimeout: 1
  43. writertimeout: 2
  44. enabledp: false
  45. logger:
  46. path: temp/logs
  47. stdout: '' #控制台日志,启用后,不输出到文件
  48. # level: trace
  49. level: info
  50. enableddb: false
  51. jwt:
  52. secret: hFj50izBbnDK1UFueTHh
  53. timeout: 3600
  54. database:
  55. driver: mysql
  56. source: root:pg3mfWRtYonekZWB@tcp(mysql-primary.observe.svc.cluster.local:3306)/observe?charset=utf8&parseTime=True&loc=Local&timeout=1000ms
  57. gen:
  58. dbname: dbname
  59. frontpath: ../go-admin-ui/src
  60. cache:
  61. memory: ''
  62. redis:
  63. # addr: 101.201.227.126:30079
  64. addr: redis-headless.observe.svc.cluster.local:6379
  65. password: gGY16H69Wjr6
  66. queue:
  67. memory:
  68. poolSize: 100
  69. locker:
  70. redis:
  71. extend: # 扩展配置
  72. clickhouseMetrics: true
  73. olapdb:
  74. driver: clickhouse
  75. addr: clickhouse.observe.svc.cluster.local:9000
  76. debug: true
  77. database: otel
  78. username: default
  79. password: cecf@cestong.com
  80. maxOpenConns: 10
  81. maxIdleConns: 5
  82. kafka:
  83. brokers:
  84. - kafka-broker-headless.observe.svc.cluster.local:9092
  85. #- 172.24.100.101:32400
  86. #- 172.24.100.101:32401
  87. #- 172.24.100.101:32402
  88. #- 101.201.227.126:32402
  89. topic: otelproto
  90. consumers: 6
  91. maxConcurrency: 100
  92. prometheus:
  93. address: http://prometheus-server.observe.svc.cluster.local:80
  94. otel:
  95. common:
  96. serviceName: "observe-server"
  97. serviceVersion: "1.0.0"
  98. # endpoint: otel-collector.cestong.com.cn:80
  99. endpoint: otel-collector-opentelemetry-collector.observe.svc.cluster.local:4318
  100. grpcEndpoint: otel-collector-opentelemetry-collector.observe.svc.cluster.local:4317
  101. metrics:
  102. interval: 60 # 收集间隔,60s