Observing Python Applications Using Prometheus

workshop

Jessica Greene Vanessa Aguilar

About the event

We’ll start with a Python application which runs a web server exposing an endpoint. On successful requests this endpoint displays a rendered HTML page but sometimes returns a server error (5XX). We want to start observing the behavior of this application at runtime by tracking and exporting metric data to understand the effect this is having on the user experience of our application.

Metrics allow us to have time based data which provides insight into how our applications are performing. Together with Logs and Tracing they make up the three pillars of Observability. Metrics help us proactively identify unwanted behavior by incorporating them in alerts and dashboards.

We will instrument our application using the time-series database system Prometheus, which uses a "pull" method to extract data from running applications. This means that applications need to "expose" their metric data so that Prometheus is able to "scrape" it. This is typically done via an HTTP endpoint (/metrics, by convention).

We will use the Prometheus Python client library to track metrics in our code as well as explore the importance of monitoring, useful metrics and the collaboration between SREs and Application Engineers to ensure operational excellence.

You can expect a combination of discussing theory, demonstrations and practical challenges which will enable you to implement the concepts on your own. In the end, you will be equipped with the knowledge to later apply these learnings to your own applications.

Get ready to start adding metrics to your own services!

Agenda

  • Theory of Observability and Metrics
  • Exploration and implementation with Prometheus Python Client
  • Tying it all together, devops as a culture

Prerequisites

This workshop is aimed at those who already have some experience with engineering and building applications in containers using Docker. To participate in the workshop you will be required to have Python 3, Python Poetry and Docker running on your machine

About the speakers

Jessica Greene Senior Machine Learning Engineer at Ecosia

Jessica Greene is a Senior Machine Learning Engineer at Ecosia, where she leverages artificial intelligence to design eco-conscious search experiences and drive measurable climate impact. Her expertise covers the full machine learning lifecycle and modern backend engineering. Jessica develops and maintains reliable microservices in Python and Go, deploys NLP and classification models to enhance query understanding and results, and actively promotes data ethics and privacy, ensuring user trust grows alongside model performance. At Ecosia, she focuses on relevance, sustainability, and responsible AI, enabling everyday searches to contribute to a healthier planet.

A self-taught and community-supported developer, Jessica transitioned to tech in 2017 after careers in film and specialty coffee. She is passionate about broadening access to technology. Since 2018, she has co-organized PyLadies Berlin, mentoring new speakers, building partnerships, and coaching contributors to become leaders in the Python community. Jessica sits on the board of the Python Software Verband and frequently shares insights on inclusive and ethical digital services. Previously, she contributed to Nextcloud through the Rails Girls Summer of Code, boosting her skills in collaborative engineering and user-centered design.

Jessica combines production readiness, community leadership, and a mission-driven mindset. She is skilled in Python, Go, SQL, data pipelines, model training and evaluation, privacy-conscious analytics, and user-focused machine learning for search. Whether enhancing ranking quality, reducing compute usage, or supporting underrepresented groups in tech, Jessica’s goal remains consistent: to use AI for better decision-making and to advance web sustainability.

Vanessa Aguilar Mexican-American Site Reliability Engineer living and

Vanessa Aguilar is a Mexican-American Site Reliability Engineer living and working in Berlin. In her work she keeps systems dependable, drawing on the operational mindset that defines reliability engineering: understanding how production systems fail, and building the automation, monitoring, and practices that keep them healthy.

Through engineering, Vanessa aims to create ways to empower her community and share her love for technology. When she is not in front of her computer, she is cuddling with her pug Connie, cooking Oaxacan food, listening to music, or doing all three at once.

Optional analytics

Optional analytics are off unless you allow them. Your choice does not affect access to DataTalks.Club, Slack, events, or courses.

Current choice: not chosen.

Privacy Policy

If you allow analytics, self-hosted Umami counts anonymous public pageviews without analytics cookies. Private account and learning pages are excluded. Read the Privacy Policy for the complete data boundary.

Want to learn more about our community?

How it started, who's here, and everything that goes on here: courses, events, Slack, and more.

About DataTalks.Club