Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
10 changes: 5 additions & 5 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,12 @@ PGBOUNCER_VERSION=latest
FORGEJO_VERSION=1.21.11-0

# Observability Stack:
PROMETHEUS_VERSION=v2.48.0
GRAFANA_VERSION=10.2.2
LOKI_VERSION=2.9.3
PROMETHEUS_VERSION=v2.55.1
GRAFANA_VERSION=11.4.0
LOKI_VERSION=3.3.2
VECTOR_VERSION=0.50.0-debian
CADVISOR_VERSION=v0.47.2
REDIS_EXPORTER_VERSION=v1.55.0
CADVISOR_VERSION=v0.51.0
REDIS_EXPORTER_VERSION=v1.67.0

# ===========================================================================
# HashiCorp Vault Configuration (Secrets Management & PKI)
Expand Down
11 changes: 9 additions & 2 deletions tests/test-observability.sh
Original file line number Diff line number Diff line change
Expand Up @@ -233,14 +233,21 @@ test_vector_pipeline() {
return 1
fi

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

# Also check if container is healthy as a fallback
if docker inspect --format='{{.State.Health.Status}}' dev-vector 2>/dev/null | grep -q "healthy"; then
local log_count=$(docker logs dev-vector 2>&1 | wc -l)
success "Vector pipeline active (container healthy, $log_count log lines)"
return 0
fi

fail "Vector pipeline test failed" "Vector pipeline"
return 1
}
Expand Down
Loading