Server
Observability
All IMVEE services send traces, logs and metrics via OpenTelemetry (OTLP) to Data Prepper, which writes the data to OpenSearch. Visualisation via OpenSearch Dashboards (Trace Analytics, Service Map, Log Analytics).
Architecture
SOCSuite Backend ──┐
Orchestrator ──┤
Traefik ──┤ OTLP ──► Data Prepper ──► OpenSearch
Matrix (Synapse) ──┤ :21890 traces trace-analytics-raw
SimulationLab ──┘ :21891 metrics imvee-metrics-YYYY.MM.DD
↓
k8s-collector ─────────────────────────────────────► imvee-k8s-*
↓
OpenSearch Dashboards
Trace Analytics | Service MapData Prepper
Deployment: data-prepper in namespace imvee-dev
Pipelines:
| Pipeline | Port | Input | OpenSearch Index |
|---|---|---|---|
entry-pipeline + raw-pipeline | 21890 | OTLP Traces | trace-analytics-raw |
service-map-pipeline | 21890 | OTLP Traces | trace-analytics-service-map |
log-pipeline | 21892 | OTLP Logs | imvee-logs-YYYY.MM.DD |
metrics-pipeline | 21891 | OTLP Metrics | imvee-metrics-YYYY.MM.DD |
Configuring Services
Every service that should send traces/logs/metrics sets the following environment variables:
OTEL_EXPORTER_OTLP_ENDPOINT=http://data-prepper.imvee-dev.svc.cluster.local:21890
OTEL_SERVICE_NAME=<service-name> # e.g. orchestrator-agent, socsuite-backend
OTEL_TRACES_EXPORTER=otlpAlready Configured
| Service | Status | Env Var |
|---|---|---|
| Traefik Gateway | ✅ | tracing.otlp.http.endpoint in traefik-config.yaml |
| SOCSuite Backend | ✅ | OTEL_EXPORTER_OTLP_ENDPOINT in configmap.yaml |
| Orchestrator | 🔲 | Issue #10 |
| Matrix (Synapse) | 🔲 | Issue #10 |
OpenSearch Trace Analytics
After the first traces arrive:
- Open OpenSearch Dashboards:
https://siem.dev.imvee.de - Observability → Trace Analytics — shows all traces
- Service Map — shows dependencies between services and latency
Logs
Pod logs (stdout/stderr) from all services are automatically collected by the k8s-collector and written to OpenSearch (imvee-k8s-logs-*). No explicit OTLP needed for basic logging.
Structured logs (JSON) are automatically detected and indexed as separate fields.
Debugging
# Check Data Prepper status
kubectl get pods -n imvee-dev -l app=data-prepper
# Check pipelines
kubectl exec -n imvee-dev deployment/data-prepper -- \
curl -s http://localhost:4900/list
# Show logs
kubectl logs -n imvee-dev deployment/data-prepper --tail=50
# Check traces in OpenSearch
kubectl exec -n imvee-dev statefulset/opensearch -- \
curl -sk -u admin:PASSWORD https://localhost:9200/_cat/indices?v | grep trace