← Back to blog
bpdubuntu

Building a Monitoring Stack with Podman Compose

28 November 2025bpd · ubuntu

Deploying Grafana and Prometheus with Containers

Just like you can use `docker-compose` to define multi-container applications, you can use `podman-compose` with Podman. The ‘Ubuntu System Administration Guide’ provides a fantastic, hands-on example of building a full monitoring stack (Grafana, Prometheus, and Node Exporter) using a `docker-compose.yaml` file managed by Podman.

Defining Your Stack

The book guides you through creating a `docker-compose.yaml` file and adding services one by one:

  1. Grafana: The visualization dashboard.
  2. Prometheus: The metrics database, configured to scrape data from other services.
  3. Node Exporter: The agent that collects metrics from the host server.

You’ll also learn how to use volumes to persist configuration and data, and how to map ports to make the services accessible. With a single `podman-compose up` command, you can launch this entire stack.


This post is based from content of the book Ubuntu System adminstration guide. And the book can be found here https://www.amazon.com/stores/Mattias-Hemmingsson/author/B0FF5CQX13