cm-settings.yaml 2.1 KB

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