col-l2.yaml 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. apiVersion: opentelemetry.io/v1alpha1
  2. kind: OpenTelemetryCollector
  3. metadata:
  4. name: col-l2
  5. namespace: ob
  6. spec:
  7. replicas: 2
  8. image: reg.cestong.com.cn/cecf/obcol:latest
  9. config: |
  10. exporters:
  11. logging: {}
  12. obkafka:
  13. brokers:
  14. - kafka-headless.observe.svc.cluster.local:9092
  15. protocol_version: 2.0.0
  16. encoding: ob_trace_hit
  17. topic: otel_sample_hit
  18. extensions:
  19. health_check: {}
  20. memory_ballast: {}
  21. processors:
  22. tail_sampling:
  23. decision_wait: 10s
  24. num_traces: 100
  25. expected_new_traces_per_sec: 10
  26. policies:
  27. - name: slow
  28. type: latency
  29. latency:
  30. threshold_ms: 1000
  31. upper_threshold_ms: 10000
  32. - name: probabilistic
  33. type: probabilistic
  34. probabilistic:
  35. sampling_percentage: 10
  36. - name: err_code
  37. type: status_code
  38. status_code:
  39. status_codes:
  40. - ERROR
  41. batch:
  42. send_batch_max_size: 1000
  43. send_batch_size: 500
  44. timeout: 3s
  45. memory_limiter:
  46. check_interval: 1s
  47. limit_percentage: 80
  48. spike_limit_percentage: 30
  49. receivers:
  50. otlp:
  51. protocols:
  52. grpc:
  53. service:
  54. telemetry:
  55. metrics:
  56. address: 0.0.0.0:8888
  57. logs:
  58. level: INFO
  59. extensions:
  60. - health_check
  61. - memory_ballast
  62. pipelines:
  63. traces:
  64. exporters:
  65. - obkafka
  66. processors:
  67. - memory_limiter
  68. - batch
  69. receivers:
  70. - otlp