Instrumenting with Prometheus

Instrumenting with Prometheus

How to instrument your data in Prometheus.

rate limit

Code not recognized.

Course Description

A core principle of monitoring with Prometheus is that each binary should be liberally instrumented. In a perfect world all libraries, client code, server code and business logic should come with Prometheus instrumentation. This isn't possible with everything (e.g. the Linux kernel), which is why we have exporters too. In this course we will look at how to think about instrumentation, and how to implement it in practice.

This course will teach you how to instrument your data in Prometheus.  It will cover the following topics

Table of Contents

1. Welcome

  • Overview
  • Prerequisites

2. Approaching Instrumentation

  • Client Libraries
  • Important Service Metrics
  • Important Library Metrics
  • Naming Metrics
  • How to use Labels
  • Instrumentation Considerations
  • Where to go from here

3. Instrumenting with Python

  • Installing the Python client
  • Exposing over HTTP
  • Simple Counters
  • Extended Counters
  • Labelled Counters
  • Simple Gauges
  • Gauges for Time
  • Labelled Gauges
  • Summaries for Timing
  • Other Summary Uses
  • Histograms for Timing

4. Python Lab

5. Review

Credits

This course is based on one developed by Robust Perception and is used with their permission. If you want to learn more about Prometheus and PromQL, you may wish to refer to Prometheus: Up & Running by Brian Brazil of Robust Perception.

 

Curriculum

  • Instrumenting with Prometheus
  • Next Steps
  • A 1 minute survey
  • What's next?

Course Description

A core principle of monitoring with Prometheus is that each binary should be liberally instrumented. In a perfect world all libraries, client code, server code and business logic should come with Prometheus instrumentation. This isn't possible with everything (e.g. the Linux kernel), which is why we have exporters too. In this course we will look at how to think about instrumentation, and how to implement it in practice.

This course will teach you how to instrument your data in Prometheus.  It will cover the following topics

Table of Contents

1. Welcome

  • Overview
  • Prerequisites

2. Approaching Instrumentation

  • Client Libraries
  • Important Service Metrics
  • Important Library Metrics
  • Naming Metrics
  • How to use Labels
  • Instrumentation Considerations
  • Where to go from here

3. Instrumenting with Python

  • Installing the Python client
  • Exposing over HTTP
  • Simple Counters
  • Extended Counters
  • Labelled Counters
  • Simple Gauges
  • Gauges for Time
  • Labelled Gauges
  • Summaries for Timing
  • Other Summary Uses
  • Histograms for Timing

4. Python Lab

5. Review

Credits

This course is based on one developed by Robust Perception and is used with their permission. If you want to learn more about Prometheus and PromQL, you may wish to refer to Prometheus: Up & Running by Brian Brazil of Robust Perception.

 

Curriculum

  • Instrumenting with Prometheus
  • Next Steps
  • A 1 minute survey
  • What's next?