~/talk

Anatomy of a Prometheus Client Library

Talkat PromCon 2018 · 2018-08-09..08-10· [developer-experience]
links:none on file
slides:none on file

Explains why Prometheus client libraries use direct instrumentation (store object references not string lookups) to save tens to hundreds of nanoseconds per update and avoid metric-name collisions, how counters gauges summaries and histograms are implemented as simple counters with client side workarounds, why registries hold but do not render metrics, how label child objects are created and cached for performance, and how mmap and push gateway patterns solve for forking servers.

AI-written summary · about

  1. 0:00Introduction to client libraries
  2. 1:14Direct instrumentation explained
  3. 3:00Metric reference vs name lookup
  4. 5:04Counter semantics and usage
  5. 6:05Gauge, summary and histogram internals
  6. 8:13Metric types vs API semantics
  7. 9:16Timer utilities and time units
  8. 10:21Labels and child metrics
  9. 12:10Ideal metric lifecycle
  10. 13:37Registries and collectors
  11. 15:23Process metrics and standards
  12. 16:49Global registry pros and cons
  13. 17:30Prometheus API flexibility
  14. 17:52Client library limitations
  15. 18:33OpenMetrics adoption in clients
  16. 19:40Q&A session part 1
  17. 20:42Aggregating metrics in forking servers
  18. 21:46Exotic client library technologies
  19. 23:21Break and book giveaway
  20. 24:06Q&A session part 2
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 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
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
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.