Skip to content

Commit e115193

Browse files
authored
fix: update observability stack versions for security (#99)
* fix: update observability stack versions for security fixes - Prometheus: v2.48.0 → v2.55.1 (fixes docker/crypto vulnerabilities) - Grafana: 10.2.2 → 11.4.0 (addresses CVEs in older version) - Loki: 2.9.3 → 3.3.2 (security patches) - cAdvisor: v0.47.2 → v0.51.0 (updated dependencies) - Redis Exporter: v1.55.0 → v1.67.0 (latest stable) * fix: update Vector pipeline test for newer Vector versions - Updated test to check for multiple startup log patterns - Added fallback check for healthy container status - Supports both old 'Vector has started' and new 'component_type=docker_logs' messages
1 parent 4341b9d commit e115193

File tree

2 files changed

+14
-7
lines changed

2 files changed

+14
-7
lines changed

.env.example

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,12 @@ PGBOUNCER_VERSION=latest
2525
FORGEJO_VERSION=1.21.11-0
2626

2727
# Observability Stack:
28-
PROMETHEUS_VERSION=v2.48.0
29-
GRAFANA_VERSION=10.2.2
30-
LOKI_VERSION=2.9.3
28+
PROMETHEUS_VERSION=v2.55.1
29+
GRAFANA_VERSION=11.4.0
30+
LOKI_VERSION=3.3.2
3131
VECTOR_VERSION=0.50.0-debian
32-
CADVISOR_VERSION=v0.47.2
33-
REDIS_EXPORTER_VERSION=v1.55.0
32+
CADVISOR_VERSION=v0.51.0
33+
REDIS_EXPORTER_VERSION=v1.67.0
3434

3535
# ===========================================================================
3636
# HashiCorp Vault Configuration (Secrets Management & PKI)

tests/test-observability.sh

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -233,14 +233,21 @@ test_vector_pipeline() {
233233
return 1
234234
fi
235235

236-
# Check Vector logs for pipeline initialization
237-
if docker logs dev-vector 2>&1 | grep -q "Vector has started"; then
236+
# Check Vector logs for pipeline initialization (supports both old and new Vector versions)
237+
if docker logs dev-vector 2>&1 | grep -qE "(Vector has started|Started watching for container logs|component_type=docker_logs)"; then
238238
# Check if Vector is processing logs
239239
local log_count=$(docker logs dev-vector 2>&1 | wc -l)
240240
success "Vector pipeline active (container running, $log_count log lines)"
241241
return 0
242242
fi
243243

244+
# Also check if container is healthy as a fallback
245+
if docker inspect --format='{{.State.Health.Status}}' dev-vector 2>/dev/null | grep -q "healthy"; then
246+
local log_count=$(docker logs dev-vector 2>&1 | wc -l)
247+
success "Vector pipeline active (container healthy, $log_count log lines)"
248+
return 0
249+
fi
250+
244251
fail "Vector pipeline test failed" "Vector pipeline"
245252
return 1
246253
}

0 commit comments

Comments
 (0)