Research: Observability with LGTM on Compose
Objectiveβ
Add a practical local observability layer to the containerized baseline so developers can inspect availability, latency, logs, and trace plumbing without changing business APIs.
Inputs Reviewedβ
spec.mdplan.mdtasks.mdsystem/architecture.mdsystem/runtime-topology.mdscripts/test-state-003-containerized.sh
Key Decisionsβ
- Build observability on top of state
005to keep messaging architecture stable while adding ops visibility. - Use LGTM stack components with OTel Collector and blackbox probes for broad coverage.
- Provision Grafana datasources and dashboards from source-controlled files.
Tradeoffsβ
- Promtail + Docker discovery is simple for local dev, but not a production log pipeline recommendation.
- OTel Collector is present and ready, but full service-level tracing instrumentation is deferred to future states.
Risks and Mitigationsβ
- Risk: behavior drift from predecessor state.
- Mitigation: state smoke tests and conformance checks.
- Risk: unclear ownership of implementation deltas.
- Mitigation: document deltas in requirements/contracts/system artifacts before code generation.