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)

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs

👋 Kindness is contagious

Dive into an ocean of knowledge with this thought-provoking post, revered deeply within the supportive DEV Community. Developers of all levels are welcome to join and enhance our collective intelligence.

Saying a simple "thank you" can brighten someone's day. Share your gratitude in the comments below!

On DEV, sharing ideas eases our path and fortifies our community connections. Found this helpful? Sending a quick thanks to the author can be profoundly valued.

Okay