@@ -364,6 +364,8 @@ data:
364364 <match kubernetes.**>
365365 @type google_cloud
366366
367+ # Try to detect JSON formatted log entries.
368+ detect_json true
367369 # Collect metrics in Prometheus registry about plugin activity.
368370 enable_monitoring true
369371 monitoring_type prometheus
@@ -373,11 +375,11 @@ data:
373375 # Set queue_full action to block because we want to pause gracefully
374376 # in case of the off-the-limits load instead of throwing an exception
375377 buffer_queue_full_action block
376- # Set the chunk limit conservatively to avoid exceeding the GCL limit
377- # of 10MiB per write request.
378- buffer_chunk_limit 2M
378+ # Set the chunk limit conservatively to avoid exceeding the recommended
379+ # chunk size of 5MB per write request.
380+ buffer_chunk_limit 1M
379381 # Cap the combined memory usage of this buffer and the one below to
380- # 2MiB /chunk * (6 + 2) chunks = 16 MiB
382+ # 1MiB /chunk * (6 + 2) chunks = 8 MiB
381383 buffer_queue_limit 6
382384 # Never wait more than 5 seconds before flushing logs in the non-error case.
383385 flush_interval 5s
@@ -394,21 +396,22 @@ data:
394396 <match **>
395397 @type google_cloud
396398
399+ detect_json true
397400 enable_monitoring true
398401 monitoring_type prometheus
399402 detect_subservice false
400403 buffer_type file
401404 buffer_path /var/log/fluentd-buffers/kubernetes.system.buffer
402405 buffer_queue_full_action block
403- buffer_chunk_limit 2M
406+ buffer_chunk_limit 1M
404407 buffer_queue_limit 2
405408 flush_interval 5s
406409 max_retry_wait 30
407410 disable_retry_limit
408411 num_threads 2
409412 </match>
410413metadata :
411- name : fluentd-gcp-config-v1.2.0
414+ name : fluentd-gcp-config-v1.2.2
412415 namespace : kube-system
413416 labels :
414417 addonmanager.kubernetes.io/mode : Reconcile
0 commit comments