~/talk

Prometheus instrumentation: the Practical Way

links:none on file
slides:none on file

Example code uses prometheus client_golang and a Thanos compaction microservice to show concrete instrumentation: simulating compaction to count blocks without running the job, exposing gauge vectors per group and resetting them after processing, recording ingestion latencies with histograms, and adding error counters. Demonstrates using a custom registry instead of default metrics, contrasts promauto vs explicit registration for error handling, and verifies behavior with table-driven unit tests that read metric values by label.

AI-written summary · about

  1. 0:00Intro
  2. 0:17About me
  3. 0:36Outline
  4. 1:05Prometheus model
  5. 1:48Instrumentation vs exporter
  6. 2:17Four stage process
  7. 3:20Metrics
  8. 5:14Getting metrics data
  9. 6:15Downsampling process
  10. 6:35Grouping
  11. 12:52Create topic
  12. 16:05Message latency
  13. 17:20Deleting gauges
  14. 17:46Table testing
  15. 18:21Creating topics
  16. 18:54Sending messages
  17. 19:05Subtests
  18. 19:40Questions
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.