OpenTelemetry and LGTM stack for this website
Every page view on this site is traced with OpenTelemetry into a self-hosted LGTM stack (Loki, Grafana, Tempo, Mimir) collected by Grafana Alloy, with visitor IPs anonymised before storage. The dashboard is public, so you can watch your own request.
Visit project
How it works:
The Laravel app runs the OpenTelemetry PHP extension with auto-instrumentation, so every request, database query and outgoing HTTP call becomes a span. Laravel's logs are exported as OpenTelemetry logs, with one structured line per request.
Grafana Alloy runs on the host and receives OTLP from the app containers. It strips server details (hostname, OS, process, internal addresses) and forwards traces to Tempo, logs to Loki and metrics to Mimir.
Tempo's metrics generator turns spans into request-rate, error and latency metrics in Mimir, which drive the dashboard's charts.
Grafana is provisioned from code with a public, read-only dashboard, served through a Cloudflare Tunnel from a home server.
Privacy: visitor IP addresses are anonymised in the app before anything is recorded (IPv4 to /24, IPv6 to /48). Nothing from the contact form is recorded, and data is kept for 7 days.