Skip to content

Commit 5e60242

Browse files
mitali-salviTravisStark
authored andcommitted
fix: reduce Fargate scrape/batch intervals for faster test validation
The cumulativetodelta processor needs 2+ scrape cycles before producing output. With 1m scrape interval + 60s batch timeout, data takes ~4-5 min to appear in CloudWatch Logs after the collector starts. Combined with Fargate pod startup time (~2-3 min), the total exceeds the validator's 7-minute retry window. Reduce scrape_interval to 15s and batch timeout to 15s so data flows within ~1-2 min of collector startup, well within the validation window.
1 parent 0599664 commit 5e60242

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

terraform/eks/container-insights-agent/config_map_fargate.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ data:
1212
prometheus:
1313
config:
1414
global:
15-
scrape_interval: 1m
16-
scrape_timeout: 50s
15+
scrape_interval: 15s
16+
scrape_timeout: 10s
1717
1818
scrape_configs:
1919
- job_name: 'kubelets-cadvisor-metrics'
@@ -287,6 +287,7 @@ data:
287287
288288
# converts cumulative sum to delta
289289
cumulativetodelta:
290+
initial_value: keep
290291
include:
291292
metrics:
292293
- new_container_cpu_usage_seconds_total
@@ -406,7 +407,7 @@ data:
406407
detectors: [env, eks]
407408
408409
batch:
409-
timeout: 60s
410+
timeout: 15s
410411
411412
exporters:
412413
awsemf:

0 commit comments

Comments
 (0)