#devops
Security and Governance in Infrastructure - Policy as Code with OPA
In the previous article of this series, we saw how to keep secrets from leaking in plain text. But there's an equally common and subtler category of error: a technically correct terraform apply…
Debugging a Real Incident - Metrics, Logs and Traces Together in Practice
Throughout this series, the stack grew piece by piece: metrics (articles 2 and 3), logs (article 4), traces (article 5), all unified in Docker Compose (article 6) and visualized in…
Grafana Dashboards - Combining PromQL and LogQL to Follow an Application End to End
The previous article's unified stack already collects metrics from both mini apps, receives their logs and processes their traces. But so far, every query has been run by hand — one…
Complete Observability Stack with Docker Compose - Python, PHP, Prometheus, Loki, OpenTelemetry and Grafana
Each article in this series brought up an 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…
OpenTelemetry - What It Is, Why It Became the Standard and How to Instrument Traces
The mini apps in this series already expose metrics (articles 2 and 3) and send logs to Loki (article 4). What's still missing is the third pillar seen in article 1: traces, which show the…
Loki in Practice - Sending Logs via the HTTP API from the Python and PHP Mini Apps
The two mini applications in this series — the Python one (article 2) and the PHP one (article 3) — already expose metrics consumed by Prometheus. Metrics answer "how many orders failed…
Custom Metrics - Counters, Gauges and Histograms with a Mini PHP App
In the previous article, the mini Python application exposed a single metric — a request count. In practice, a real application wants to answer more specific business questions…
Prometheus in Practice - Scraping, the /metrics Endpoint and a Mini Python App Exposing Metrics
In the first article of this series, we brought up Prometheus, Loki and Grafana with Docker Compose, but with no real application sending data — Prometheus only monitored itself. This…
Observability - What It Is, Metrics vs Logs vs Traces and the Prometheus + Loki + Grafana Stack
For a long time, "monitoring" a system basically meant one thing: setting up a few alerts (high CPU, full disk, process down) and hoping they cover the…
Advanced GitOps - Deploy Automation, Rollback and Best Practices for Production
So far, this series has covered enough to operate Kubernetes with GitOps day to day: core concepts of Pods, Deployments and Services, kubectl, namespaces, ConfigMaps and…
GitOps in Practice - ArgoCD and Repository Structure
In the first two parts of this series, every Deployment was applied with kubectl apply -f file.yaml, run by hand from the machine of whoever was operating the cluster. That…
Kubernetes Day to Day - kubectl, Namespaces, ConfigMaps and Secrets
In the first part of this series we saw what Kubernetes is, the problem it solves and the three core concepts — Pods, Deployments and Services — applying them in a…
Kubernetes - What It Is, What It's For and Core Concepts
Running a standalone container by hand with docker run solves the problem of packaging and distributing an application quite well. But as soon as that application needs to run in production — with…
IaC Beyond Terraform - Testing Infrastructure as Code
In the previous two articles of this series, we looked at OpenTofu as an alternative for provisioning infrastructure and Ansible for configuring it once created. But there's a question that…
IaC Beyond Terraform - Ansible for Provisioning and Configuration
In the previous article of this series, we looked at OpenTofu as an alternative (or drop-in replacement) to Terraform for provisioning infrastructure — creating VMs, networks…
Advanced Docker - Multi-Stage Builds, Security and CI/CD
So far, this series has covered enough to develop with Docker day to day: core concepts, essential commands, efficient Dockerfiles, networking, volumes and Compose…
Docker Compose - Orchestrating Multiple Containers
In the previous article, bringing up a connected API and Postgres took two long docker run commands, with network, volume and environment variable flags to remember (and type) every…
Docker - Networks and Volumes in Practice
The previous articles in this series covered how to build efficient images and run isolated containers. But a real application is rarely a single container: usually there's an…
Dockerfile in Practice - Layers, Build Cache and Best Practices
In the second part of this series, a Dockerfile with just a few lines was enough to package a Python application. That works, but a Dockerfile written without thinking about layers…
Docker Day to Day - Essential Commands and First Real Containers
In the first part of this series we saw what Docker is, the problem it solves and the three core concepts — images, containers and registries. Now that the theory is in place…
Docker - What It Is, What It's For and Core Concepts
"It works on my machine." Few phrases sum up so well a problem that has plagued (and still plagues) development teams: code that runs perfectly on the developer's laptop but breaks…