Urgent.News

What's breaking now, across thousands of outlets.

Tech

Full observability stack with Docker Compose - Python, PHP, Prometheus, Loki, OpenTelemetry and Grafana

1. Resuming: the loose pieces so far Each article in this series has covered one isolated piece: Prometheus + Loki + Grafana in article 1, the Python mini app in article 2, the PHP mini app in article 3, sending logs to Loki in article 4, and trace instrumentation (so far only printed to the console) in article 5. This article brings everything together in a single docker-compose.yml, with one new piece: a collector…

Translated from Portuguese Read in Portuguese

This article brings together all the previously covered components of observability into a single docker-compose.yml file, featuring a new OpenTelemetry collector. The collector receives traces from the mini apps through OTLP and forwards them. In the previous articles, each mini app exported spans directly to the console (ConsoleSpanExporter), but this approach is not how real applications communicate with an observability stack.

The OpenTelemetry Collector simplifies this process by acting as the intermediary. The mini apps continue to export to the same place (the collector via OTLP), while the collector decides where the data goes next, handling tasks like tracing, sampling, attribute enrichment, or multiple destinations simultaneously. Changing the backend becomes a configuration change of the collector, not a redeployment of each instrumented application.

Written by urgent.news from Dev.to's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.

Read the original at dev.to →

More in Tech

As phones become better for photography and video I’m using my real camera less and less – but that doesn’t mean they can’t co-exist

As the camera phone gets better and better with manual controls, new features, telephoto options and more, do we really need a proper camera anymore? The post As phones become better for photography and video I’m using my real camera less and less – but that doesn’t mean they can’t co-exist appeared first on Amateur Photographer .

More from Friday 25 September →