Understanding Prometheus Metric Types | Meaning and Usage (Gauge, Counter, Summary, Histogram)

preview_player
Показать описание
This video explains the four different metric types in Prometheus: Gauges, Counters, Summaries, and Histograms. It goes into the meaning of each type, explains how to use each type in instrumentation, and how they show up in the exposition format. It also touches on what you have to watch out for when querying each metric type with PromQL.

Check my Prometheus training courses if you want to learn Prometheus in a structured way from the ground up:

Histograms vs. Summaries in the Prometheus documentation:

Chapters:
00:00 Introduction
00:25 Gauges
01:00 Gauge Instrumentation Methods
01:40 Gauges in the Exposition Format
01:50 Querying Gauges
02:05 Gauges Containing Timestamps
02:18 Counters
02:44 Counter Resets
02:56 Counter Instrumentation Methods
03:48 Counters in the Exposition Format
03:58 Querying Counters (absolute values vs. rates)
04:53 Summaries
05:05 Constructing Summaries
05:15 Summary Instrumentation Methods
05:37 Summaries in the Exposition Format
06:01 Querying Summaries
06:45 Histograms
07:10 Cumulative Histograms
07:48 Constructing Histograms
07:58 Histogram Instrumentation Methods
08:08 Histograms in the Exposition Format
09:05 Querying Histograms (percentile calculation using histogram_quantile() )
10:10 Average Request Latencies
10:29 Native Histograms
11:04 Outro & PromLabs Prometheus Trainings

---------------------------------------------------------------------------
Рекомендации по теме
Комментарии
Автор

The Prometheus CO-FOUNDER is out here explaining these concepts, and doing them so well. What a legend! Easiest sub ever. Thanks Julius!!!

ankitshah
Автор

We recently started using it in our production, thank you so much for your work and for these videos. Hope to see them more 🙏

mnhmfev
Автор

hey julius... your way of explaining is super simple and on-point. the way you speak steadily and clearly..it made the concepts so easy to understand. keep bringing more videos on grafana and prometheus.

abdussamisehaam
Автор

Thanks a ton ! I'm re-watching this and a couple more of your videos till the "dust settles" ...

cokegen
Автор

Thanks! This video covers just what I wanted to know

manumonti_
Автор

Amazing explanation, thanks for sharing

metalmasterlp
Автор

Thank you very much for the amazing videos! Very informative

denar
Автор

Thanks for this video.
Would like to know more about native histogram.

VishalSharma-rlko
Автор

It might set the context better for a first time watcher, if instrumentation is mentioned briefly.

bcviloz
Автор

I have a datetime value I want to track with metrics and prometheus. What would be the ideal metric type for that job?

catex
Автор

when I am trying to create datasource using local prometheus url in grafana its throwing an error "ReadObject: expect { or, or } or n, but found #, error found in #1 byte of ...|# HELP jmx_|..., bigger context ...|# HELP Number of ti|... - There was an error returned querying the Prometheus API." how to resolve this .Any body help me

sriyushanyanshunamana
Автор

thanks for the video but the subscriber button has a very different kind of inc() method it substracts one if you are already subscribed :)

JackReacher
Автор

How to enable authentication in prometheus

vipinmanakkattel