~/talk

Prometheus Monitoring for Java Web Applications w o Modifying Source Code

Talkat Devoxx Belgium 2017 · 2017-11-06..11-10· [java]
slides:none on file

Creates a Java agent that injects Prometheus counters into servlet code at class-load time using Byte Buddy, instruments javax.servlet.Servlet.service to increment a labeled counter for the request path, and starts a tiny HTTP exporter so metrics appear at /metrics on :9300. Works against WildFly (and also Tomcat/Spring Boot), demo shows counters incrementing on each request. Notes: must expose agent packages to app server classloader (JBoss module tweak) and use thread‑locals to avoid double counting when servlets forward.

AI-written summary · about

  1. 0:00Prometheus monitoring intro
  2. 1:08What is a Prometheus metric
  3. 6:02Instrumenting Java apps
  4. 12:30Monitoring without code changes
  5. 13:33How Java agents work
  6. 16:22Byte Buddy for bytecode
  7. 18:49Demo of Java agent
  8. 23:28Advanced use cases
  9. 27:48Q&A and server setup
~/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.