vmagent: cap consul SD wait time under nginx timeout (#515)

nginx in front of Consul closes requests at 90s. vmagent's consul SD sends blocking queries with a 525s wait, so every watch fails with a 504 and the consul job finds no targets. That leaves no puppet-host metrics (node_exporter etc.) in VictoriaMetrics.

- set `promscrape.consul.waitTime: 50s` on the main VMAgent

Reviewed-on: #515
Co-authored-by: unkin-agent <unkin-agent@unkin.net>
Co-committed-by: unkin-agent <unkin-agent@unkin.net>
This commit was merged in pull request #515.
This commit is contained in:
2026-10-03 22:15:16 +10:00
committed by BenVincent
parent 96624a69c4
commit 27dd7e7f3d
+2
View File
@@ -12,6 +12,8 @@ spec:
selectAllByDefault: true
extraArgs:
loggerFormat: json
# nginx in front of Consul cuts blocking queries at 90s; default is 525s.
promscrape.consul.waitTime: 50s
remoteWrite:
- url: http://vminsert-main.observability.svc.cluster.local:8480/insert/0/prometheus/
resources: