~/talk

The Weirdest PromQL You’ll Ever See: PromQL for Reporting, Analytics

Talkat PromCon EU 2024 · 2024-09-11..09-12· [data-visualization]
github:samjewell
slides:none on file

Uses Prometheus + Grafana to do billing and usage analytics and reports $25,000/month of metrics dialed back in testing. Shows concrete queries: use increase(counter, 1d) for counters, integrate rate metrics by using sum_over_time(range) scrape_interval inside subqueries to avoid missing scrapes, and isolate calendar months by applying a month() filter via absent() and group_left ignoring* join so labels are preserved. Demo works and supports unioned months for multi-month views.

AI-written summary · about

  1. 0:00Introduction to cost analysis
  2. 1:14Why use Prometheus for billing
  3. 3:53Defining cost visualization goals
  4. 7:10Building daily usage reports
  5. 9:28Handling gauge metrics
  6. 12:27Filtering for monthly data
  7. 16:04Combining metrics with joins
  8. 18:05Creating cumulative views
  9. 20:26Aggregating multiple months
  10. 22:58Demonstration and closing
  11. 24:09Q&A session
~/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.