Skip to content

Commit 3ea701e

Browse files
authored
fix(analytics): wait for logflare before starting vector (#4989)
2 parents a0799e3 + f289ae6 commit 3ea701e

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

internal/start/start.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -392,9 +392,11 @@ EOF
392392
container.Config{
393393
Image: utils.Config.Analytics.VectorImage,
394394
Env: env,
395-
Entrypoint: []string{"sh", "-c", `cat <<'EOF' > /etc/vector/vector.yaml && vector --config /etc/vector/vector.yaml
395+
Entrypoint: []string{"sh", "-c", `cat <<'EOF' > /etc/vector/vector.yaml
396396
` + vectorConfigBuf.String() + `
397397
EOF
398+
until wget --no-verbose --tries=1 --spider http://` + utils.LogflareId + `:4000/health 2>/dev/null; do sleep 2; done
399+
vector --config /etc/vector/vector.yaml
398400
`},
399401
Healthcheck: &container.HealthConfig{
400402
Test: []string{

0 commit comments

Comments
 (0)