Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
675c583
Set `block_on_overflow`, `wait_for_result` and exporter batching.
franciscovalentecastro Feb 13, 2026
3d21ca9
Update goldens.
franciscovalentecastro Feb 13, 2026
87e7355
Change `min_size`.
franciscovalentecastro Feb 13, 2026
36fedcb
Update goldens.
franciscovalentecastro Feb 13, 2026
ef97ba1
Remove `wait_on_result`.
franciscovalentecastro Feb 13, 2026
f45d8b7
Set `block_on_overflow`, `wait_for_result`, `queue_size` and `batch`.
franciscovalentecastro Feb 17, 2026
5301d6b
Update goldens.
franciscovalentecastro Feb 17, 2026
67393ef
Update comments.
franciscovalentecastro Feb 17, 2026
813a456
Remove `wait_for_result`.
franciscovalentecastro Feb 17, 2026
dd7e89b
Update goldens.
franciscovalentecastro Feb 17, 2026
fee2bd8
Keep `googleCloudLoggingExporter` original structure.
franciscovalentecastro Feb 23, 2026
25122bd
Remove `ProcessorsByType`.
franciscovalentecastro Feb 23, 2026
c045a55
Remove `queue_size`.
franciscovalentecastro Feb 23, 2026
07733e8
Set `queue_size` to `"num_consumers + 1"` and `sizer: requests`.
franciscovalentecastro Feb 25, 2026
08f3737
Set batch min and max to 1000.
franciscovalentecastro Feb 25, 2026
4742e7b
Remove `block_on_overflow`, `queue_size`, `sizer`,`num_consumers`.
franciscovalentecastro Feb 26, 2026
181a48f
Only `batch` and `block_on_overflow`.
franciscovalentecastro Feb 26, 2026
60cbca1
Add `queue_size`, `sizer` and `num_consumers` configs.
franciscovalentecastro Feb 26, 2026
2615ee5
Set `queue_size=20`
franciscovalentecastro Feb 26, 2026
de1d584
Update `queue_size` to 100.
franciscovalentecastro Mar 2, 2026
3b86b5a
Fix goldens after rebase.
franciscovalentecastro Mar 2, 2026
52fd4be
Update queue_size and sizer.
franciscovalentecastro Mar 9, 2026
318ab07
Update goldens.
franciscovalentecastro Mar 9, 2026
ebcb1a0
Merge branch 'master' into fcovalente-block-on-overflow
franciscovalentecastro Mar 9, 2026
ac65337
Merge branch 'master' into fcovalente-block-on-overflow
franciscovalentecastro Mar 9, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 16 additions & 6 deletions confgenerator/confgenerator.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,22 @@ func googleCloudLoggingExporter() otel.Component {
// Set to mirror the 60s max limit of default retry window in Google Cloud Logging apiv2 go client :
// https://github.com/googleapis/google-cloud-go/blob/logging/v1.4.2/logging/apiv2/logging_client.go#L78-L90
"timeout": "60s",
"sending_queue": map[string]interface{}{
"enabled": true,
// Set queue_size to "(num_consumers + 2)*1000" to always have a new batch ready.
"queue_size": 12000,
"num_consumers": 10,
"sizer": "items",
// Blocks the "sending_queue" on overflow to reduce log loss.
"block_on_overflow": true,
// Set batch in "sending_queue" is recommended instead of using the batch processor.
"batch": map[string]interface{}{
"flush_timeout": "200ms",
"min_size": 1000,
"max_size": 1000,
"sizer": "items",
},
},
},
}
}
Expand Down Expand Up @@ -228,12 +244,6 @@ func (uc *UnifiedConfig) GenerateOtelConfig(ctx context.Context, outDir, stateDi
},
otel.Logging: {
Exporter: googleCloudLoggingExporter(),
ProcessorsByType: map[string][]otel.Component{
// Batching logs improves log export performance.
"logs": {
otel.BatchProcessor(1000, 1000, "200ms"),
},
},
},
},
}.Generate(ctx)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,17 @@ exporters:
skip_create_descriptor: true
user_agent: Google-Cloud-Ops-Agent-Metrics/latest (BuildDistro=build_distro;Platform=linux;ShortName=linux_platform;ShortVersion=linux_platform_version)
googlecloud/logging:
sending_queue:
batch:
flush_timeout: 200ms
max_size: 1000
min_size: 1000
sizer: items
block_on_overflow: true
enabled: true
num_consumers: 10
queue_size: 12000
sizer: items
timeout: 60s
googlecloud/otel:
metric:
Expand All @@ -25,10 +36,6 @@ processors:
agentmetrics/hostmetrics_0:
blank_label_metrics:
- system.cpu.utilization
batch/googlecloud/logging_logs_0:
send_batch_max_size: 1000
send_batch_size: 1000
timeout: 200ms
cumulativetodelta/loggingmetrics_4:
include:
match_type: strict
Expand Down Expand Up @@ -742,7 +749,6 @@ service:
processors:
- transform/otlp_0
- resourcedetection/_global_1
- batch/googlecloud/logging_logs_0
receivers:
- otlp/otlp
metrics/default__pipeline_hostmetrics:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,17 @@ exporters:
skip_create_descriptor: true
user_agent: Google-Cloud-Ops-Agent-Metrics/latest (BuildDistro=build_distro;Platform=linux;ShortName=linux_platform;ShortVersion=linux_platform_version)
googlecloud/logging:
sending_queue:
batch:
flush_timeout: 200ms
max_size: 1000
min_size: 1000
sizer: items
block_on_overflow: true
enabled: true
num_consumers: 10
queue_size: 12000
sizer: items
timeout: 60s
googlecloud/otel:
metric:
Expand All @@ -25,10 +36,6 @@ processors:
agentmetrics/hostmetrics_0:
blank_label_metrics:
- system.cpu.utilization
batch/googlecloud/logging_logs_0:
send_batch_max_size: 1000
send_batch_size: 1000
timeout: 200ms
cumulativetodelta/loggingmetrics_4:
include:
match_type: strict
Expand Down Expand Up @@ -711,7 +718,6 @@ service:
processors:
- transform/otlp_0
- resourcedetection/_global_1
- batch/googlecloud/logging_logs_0
receivers:
- otlp/otlp
metrics/default__pipeline_hostmetrics:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,17 @@ exporters:
skip_create_descriptor: true
user_agent: Google-Cloud-Ops-Agent-Metrics/latest (BuildDistro=build_distro;Platform=windows;ShortName=win_platform;ShortVersion=win_platform_version)
googlecloud/logging:
sending_queue:
batch:
flush_timeout: 200ms
max_size: 1000
min_size: 1000
sizer: items
block_on_overflow: true
enabled: true
num_consumers: 10
queue_size: 12000
sizer: items
timeout: 60s
googlecloud/otel:
metric:
Expand All @@ -25,10 +36,6 @@ processors:
agentmetrics/hostmetrics_0:
blank_label_metrics:
- system.cpu.utilization
batch/googlecloud/logging_logs_0:
send_batch_max_size: 1000
send_batch_size: 1000
timeout: 200ms
casttosum/iis_1:
metrics:
- agent.googleapis.com/iis/network/transferred_bytes_count
Expand Down Expand Up @@ -824,7 +831,6 @@ service:
processors:
- transform/otlp_0
- resourcedetection/_global_1
- batch/googlecloud/logging_logs_0
receivers:
- otlp/otlp
metrics/default__pipeline_hostmetrics:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,17 @@ exporters:
skip_create_descriptor: true
user_agent: Google-Cloud-Ops-Agent-Metrics/latest (BuildDistro=build_distro;Platform=windows;ShortName=win_platform;ShortVersion=win_platform_version)
googlecloud/logging:
sending_queue:
batch:
flush_timeout: 200ms
max_size: 1000
min_size: 1000
sizer: items
block_on_overflow: true
enabled: true
num_consumers: 10
queue_size: 12000
sizer: items
timeout: 60s
googlecloud/otel:
metric:
Expand All @@ -25,10 +36,6 @@ processors:
agentmetrics/hostmetrics_0:
blank_label_metrics:
- system.cpu.utilization
batch/googlecloud/logging_logs_0:
send_batch_max_size: 1000
send_batch_size: 1000
timeout: 200ms
casttosum/iis_1:
metrics:
- agent.googleapis.com/iis/network/transferred_bytes_count
Expand Down Expand Up @@ -824,7 +831,6 @@ service:
processors:
- transform/otlp_0
- resourcedetection/_global_1
- batch/googlecloud/logging_logs_0
receivers:
- otlp/otlp
metrics/default__pipeline_hostmetrics:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,17 @@ exporters:
skip_create_descriptor: true
user_agent: Google-Cloud-Ops-Agent-Metrics/latest (BuildDistro=build_distro;Platform=linux;ShortName=linux_platform;ShortVersion=linux_platform_version)
googlecloud/logging:
sending_queue:
batch:
flush_timeout: 200ms
max_size: 1000
min_size: 1000
sizer: items
block_on_overflow: true
enabled: true
num_consumers: 10
queue_size: 12000
sizer: items
timeout: 60s
extensions:
file_storage:
Expand All @@ -17,10 +28,6 @@ processors:
agentmetrics/hostmetrics_0:
blank_label_metrics:
- system.cpu.utilization
batch/googlecloud/logging_logs_0:
send_batch_max_size: 1000
send_batch_size: 1000
timeout: 200ms
cumulativetodelta/loggingmetrics_4:
include:
match_type: strict
Expand Down Expand Up @@ -885,7 +892,6 @@ service:
processors:
- transform/syslog_0
- resourcedetection/_global_0
- batch/googlecloud/logging_logs_0
receivers:
- filelog/syslog
logs/logs_p1_sample__logs:
Expand Down Expand Up @@ -917,7 +923,6 @@ service:
- filter/logs_p1_sample__logs_21
- filter/logs_p1_sample__logs_22
- resourcedetection/_global_0
- batch/googlecloud/logging_logs_0
receivers:
- filelog/sample__logs
metrics/default__pipeline_hostmetrics:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,17 @@ exporters:
skip_create_descriptor: true
user_agent: Google-Cloud-Ops-Agent-Metrics/latest (BuildDistro=build_distro;Platform=linux;ShortName=linux_platform;ShortVersion=linux_platform_version)
googlecloud/logging:
sending_queue:
batch:
flush_timeout: 200ms
max_size: 1000
min_size: 1000
sizer: items
block_on_overflow: true
enabled: true
num_consumers: 10
queue_size: 12000
sizer: items
timeout: 60s
extensions:
file_storage:
Expand All @@ -17,10 +28,6 @@ processors:
agentmetrics/hostmetrics_0:
blank_label_metrics:
- system.cpu.utilization
batch/googlecloud/logging_logs_0:
send_batch_max_size: 1000
send_batch_size: 1000
timeout: 200ms
cumulativetodelta/loggingmetrics_4:
include:
match_type: strict
Expand Down Expand Up @@ -854,7 +861,6 @@ service:
processors:
- transform/syslog_0
- resourcedetection/_global_0
- batch/googlecloud/logging_logs_0
receivers:
- filelog/syslog
logs/logs_p1_sample__logs:
Expand Down Expand Up @@ -886,7 +892,6 @@ service:
- filter/logs_p1_sample__logs_21
- filter/logs_p1_sample__logs_22
- resourcedetection/_global_0
- batch/googlecloud/logging_logs_0
receivers:
- filelog/sample__logs
metrics/default__pipeline_hostmetrics:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,17 @@ exporters:
skip_create_descriptor: true
user_agent: Google-Cloud-Ops-Agent-Metrics/latest (BuildDistro=build_distro;Platform=windows;ShortName=win_platform;ShortVersion=win_platform_version)
googlecloud/logging:
sending_queue:
batch:
flush_timeout: 200ms
max_size: 1000
min_size: 1000
sizer: items
block_on_overflow: true
enabled: true
num_consumers: 10
queue_size: 12000
sizer: items
timeout: 60s
extensions:
file_storage:
Expand All @@ -17,10 +28,6 @@ processors:
agentmetrics/hostmetrics_0:
blank_label_metrics:
- system.cpu.utilization
batch/googlecloud/logging_logs_0:
send_batch_max_size: 1000
send_batch_size: 1000
timeout: 200ms
casttosum/iis_1:
metrics:
- agent.googleapis.com/iis/network/transferred_bytes_count
Expand Down Expand Up @@ -1308,7 +1315,6 @@ service:
- transform/windows__event__log_1
- transform/windows__event__log_2
- resourcedetection/_global_0
- batch/googlecloud/logging_logs_0
receivers:
- windowseventlog/windows__event__log
logs/logs_default__pipeline_windows__event__log_1:
Expand All @@ -1319,7 +1325,6 @@ service:
- transform/windows__event__log_1_1
- transform/windows__event__log_1_2
- resourcedetection/_global_0
- batch/googlecloud/logging_logs_0
receivers:
- windowseventlog/windows__event__log_1
logs/logs_default__pipeline_windows__event__log_2:
Expand All @@ -1330,7 +1335,6 @@ service:
- transform/windows__event__log_2_1
- transform/windows__event__log_2_2
- resourcedetection/_global_0
- batch/googlecloud/logging_logs_0
receivers:
- windowseventlog/windows__event__log_2
logs/logs_p1_sample__logs:
Expand Down Expand Up @@ -1362,7 +1366,6 @@ service:
- filter/logs_p1_sample__logs_21
- filter/logs_p1_sample__logs_22
- resourcedetection/_global_0
- batch/googlecloud/logging_logs_0
receivers:
- filelog/sample__logs
metrics/default__pipeline_hostmetrics:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,17 @@ exporters:
skip_create_descriptor: true
user_agent: Google-Cloud-Ops-Agent-Metrics/latest (BuildDistro=build_distro;Platform=windows;ShortName=win_platform;ShortVersion=win_platform_version)
googlecloud/logging:
sending_queue:
batch:
flush_timeout: 200ms
max_size: 1000
min_size: 1000
sizer: items
block_on_overflow: true
enabled: true
num_consumers: 10
queue_size: 12000
sizer: items
timeout: 60s
extensions:
file_storage:
Expand All @@ -17,10 +28,6 @@ processors:
agentmetrics/hostmetrics_0:
blank_label_metrics:
- system.cpu.utilization
batch/googlecloud/logging_logs_0:
send_batch_max_size: 1000
send_batch_size: 1000
timeout: 200ms
casttosum/iis_1:
metrics:
- agent.googleapis.com/iis/network/transferred_bytes_count
Expand Down Expand Up @@ -1308,7 +1315,6 @@ service:
- transform/windows__event__log_1
- transform/windows__event__log_2
- resourcedetection/_global_0
- batch/googlecloud/logging_logs_0
receivers:
- windowseventlog/windows__event__log
logs/logs_default__pipeline_windows__event__log_1:
Expand All @@ -1319,7 +1325,6 @@ service:
- transform/windows__event__log_1_1
- transform/windows__event__log_1_2
- resourcedetection/_global_0
- batch/googlecloud/logging_logs_0
receivers:
- windowseventlog/windows__event__log_1
logs/logs_default__pipeline_windows__event__log_2:
Expand All @@ -1330,7 +1335,6 @@ service:
- transform/windows__event__log_2_1
- transform/windows__event__log_2_2
- resourcedetection/_global_0
- batch/googlecloud/logging_logs_0
receivers:
- windowseventlog/windows__event__log_2
logs/logs_p1_sample__logs:
Expand Down Expand Up @@ -1362,7 +1366,6 @@ service:
- filter/logs_p1_sample__logs_21
- filter/logs_p1_sample__logs_22
- resourcedetection/_global_0
- batch/googlecloud/logging_logs_0
receivers:
- filelog/sample__logs
metrics/default__pipeline_hostmetrics:
Expand Down
Loading
Loading