MicroProfile Metrics: Practical Use Cases
summary
Demonstrates adding concrete metrics to Java services by exposing /metrics in Prometheus format on Payara Micro + Prometheus and instrumenting endpoints with @Metric Counter, Gauge, Meter, Timer. Shows a demo mixing a local DB and remote IMDb plot, uses fault tolerance (timeout + fallback) and increments a counter each fallback so failures are visible; Prometheus graphs the rate and timings (example total requests ~28 during demo). Works end-to-end: HTTP-exposed metrics solve JMX limitations for short-lived JVMs and containerized microservices.
AI-written summary · about
chapters (13)
- 0:00Start
- 2:59Why Metrics
- 3:38Why We Need Metrics
- 4:15Why Do You Need Matrix
- 5:14Non Devops
- 7:41Options To Retrieve Metrics from Your Applications
- 11:40Why Do Why Do We Need Micro Services
- 19:10The Configure Spec
- 19:35Fault Tolerance
- 28:24Analyze the Metrics
- 28:40Prometheus Format
- 32:27Orion Metric
- 44:39Advanced Queries
related talks
48mState of the Java Metrics Libraries
34mScale your microservices by MicroProfile Metrics on Kubernetes
32mOps for Developers - Monitor Your Java Application with Prometheus
38mObservability 101 with Spring and Micrometer
42mMonitoring your Spring Boot & Micronaut microservices with Micrometer
44mWelcome to the Metrics
44mDo It Yourself: Programmable Metrics using OpenTelemetry
42mMicroProfile: microservices made easy
