Workshop

Getting started with Prometheus

This workshop will guide you through a basic installation of Prometheus and your first initial metrics collection.
Prerequisites: Podman Desktop v4.3+
Notes: workshop based on Prometheus v2.42.0 and tested with Mac OS X (Linux or Windows might require some modifications of the workshop instructions)
Next slide to the right... ==>

Follow along:


Short link: bit.ly/prom-workshop

Navigation tips - Table of contents

Each lab provided by this workshop has a table of contents. Using this table of contents and general navigation provided for your ease of use.

Keyboard:
  • 'm' key = open / close table of contents
  • arrow keys = move forward / back through slides


Mouse click on:
  • bottom left icon = open table of contents
  • bottom right arrow icons = move forward / back through slides

Some workshop guidelines

Some things to watch for in the workshop:

  • All links you can click to follow are displayed as green text
  • All video images can be clicked on to view
  • All code snippets will be as follows:
    • System.out.println("This is code.");


Find any issue as you take this workshop, please report here (click link).

Lab 1 - Introduction to Prometheus

Lab goals: This lab introduces you to the Prometheus project and provides you with an understanding of its role in the cloud native observability community.
[ Click here to start ]

Lab 2 - Installing Prometheus

Lab goals: This lab walks you through the steps for installing Prometheus on your local machine.
[ Click here to start ]

Lab 3 - Introduction to the Query Language

Lab goals: This lab introduces the Prometheus Query Language (PromQL) giving you an introduction and sets up a demo project to provide more realistic data for querying.
[ Click here to start ]

Lab 4 - Exploring Basic Queries

Lab goals: This lab dives into using PromQL to explore basic querying so that you can use it to visualize collected metrics data.
[ Click here to start ]

Lab 5 - Using Advanced Queries

Lab goals: This lab takes you deeper into PromQL expanding your query toolbox with more advanced queries for visualizing collected metrics data.
[ Click here to start ]

Lab 6 - Relabeling Metrics in Prometheus

Lab goals: The lab teaches you how relabeling metrics work in Prometheus and how to apply them when mapping, aggregating, dropping, or filtering scraped metrics.
[ Click here to start ]

Getting Started with Open Visualization

Goals: This is a standalone workshop focused on gaining an understanding of what the basic components are to building dashboards with the Perses project, installing Perses, exploring its tooling, and building your first dashboard.
[ Click here to start ]

Lab 8 - Discovering Service Targets

Lab goals: This lab ensures you understand how service discovery is used in Prometheus for locating and scraping targets for metrics collection. You'll also set up a service discovery mechanism to start scraping metrics from a service.
[ Coming soon... ]

Lab 9 - Instrumenting Applications

Lab goals: This lab introduces client libraries and shows you how to use them to add Prometheus metrics to applications and services. You'll get hands-on and instrument a sample application to start collecting metrics.
[ Coming soon... ]

Lab 10 - Prometheus and Kubernetes

Lab goals: This lab shows you how to install, configure, and start collecting basic metrics from a Kubernetes (k8s) cluster with Prometheus.
[ Coming soon... ]

Conclusion - Metrics Monitoring at Scale

Lab goals: This lab helps you understand some of the pain points with Prometheus that arise as you start to scale out your observability architecture and start caring more about reliability.
[ Click here to start ]

The End

This completes the workshop, thanks for your time and feedback is always welcome!
Eric D. Schabell
Director Evangelism
Contact: @ericschabell {@fosstodon.org}
or https://www.schabell.org