~/talk

How to Export Prometheus Metrics from Just About Anything

slides:none on file

Shows how to build real Prometheus exporters in Go and proves they work by curling metrics and configuring Prometheus to scrape them. Implements a procfs CPU exporter using io.Reader + bufio.Scanner and the Prometheus client_golang Collector interface, and an HDHomeRun exporter that dials devices with timeouts using libhdhomerun + c‑for‑go and a target query parameter. Demonstrates using ConstMetric constructors, synthetic info metrics for PromQL joins, build tags for statfs, and unit‑testable interfaces.

AI-written summary · about

  1. 0:00Introduction
  2. 0:24What is Prometheus
  3. 3:46Building an exporter in Go
  4. 7:46procstat
  5. 8:21CPU Stats
  6. 9:38Slice Boundaries
  7. 10:37Demo
  8. 12:07Anonymous Structures
  9. 13:20Export Demo
  10. 14:09Hardware Metrics
  11. 15:27Go Client
  12. 15:52Communications Types
  13. 16:34HighLevel API
  14. 17:40Example Program
  15. 19:31Device Interface
  16. 19:55Testing with curl
  17. 20:26Prometheus configuration
  18. 21:19Prometheus metadata
  19. 21:43PrometheusQL
  20. 23:14StatFS
  21. 25:54Linux Program
  22. 27:10Conclusion
  23. 28:12Questions
~/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.