DEV Community

Adam Gardner
Adam Gardner

Posted on • Edited on

Prometheus for Absolute Beginners

If you're brand new to Prometheus and want a quick and easy introduction, this video will do just that in 13 minutes.

In the video I cover:

  • Prometheus and its components
  • Different Prometheus metric types

Then during the hands on you will:

  • Create a Python / FastAPI based server which makes a prometheus metric available
  • Configure Prometheus to retrieve (aka pull or scrape) that metric into Prometheus
  • Understand how to troubleshoot prometheus connection errors to the endpoints it is trying to scrape (aka. targets)
  • Start Prometheus and view the metric
  • Update the metric and watch the the new value be shown in Prometheus

Open Source Code

All of the code I use is open source and available here: https://github.com/agardnerit/prometheus-for-beginners

Top comments (0)

Sentry image

See why 4M developers consider Sentry, “not bad.”

Fixing code doesn’t have to be the worst part of your day. Learn how Sentry can help.

Learn more

👋 Kindness is contagious

Immerse yourself in a wealth of knowledge with this piece, supported by the inclusive DEV Community—every developer, no matter where they are in their journey, is invited to contribute to our collective wisdom.

A simple “thank you” goes a long way—express your gratitude below in the comments!

Gathering insights enriches our journey on DEV and fortifies our community ties. Did you find this article valuable? Taking a moment to thank the author can have a significant impact.

Okay