~/talk

The Key to Go Efficiency is Just a Few Go Runtime Metrics Away!

Talkat GopherCon UK 2024 · 2024-08-14..08-16· [go, observability]
slides:none on file

Go Runtime exposes concrete metrics that let developers find real problems fast: use the new runtime/metrics package (Go 1.16+) and Prometheus client_golang to scrape the recommended ~10 runtime metrics. Example: one instance shows 30,000 goroutines and ~1,000,000 allocated objects, causing GC pauses five times worse; root cause is uncancelled context in a loop (fix: cancel, don’t defer in the loop). Monitor GOMAXPROCS, GOGC, GOMEMLIMIT, goroutine counts, heap_alloc and alloc_total to detect leaks and tune tradeoffs.

AI-written summary · about

  1. 0:00Go runtime metrics intro
  2. 7:27Why monitor Go runtime metrics
  3. 15:40Collecting metrics with Prometheus
  4. 28:43Key Go runtime metrics
  5. 49:44Key takeaways and Q&A
~/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.