Scale your microservices by MicroProfile Metrics on Kubernetes
summary
Demonstrates using MicroProfile Metrics exported as an application metric (a login_counter), scraped by Prometheus and exposed via the Prometheus Adapter as an external metric to Kubernetes HPA. Shows building a Docker image, deploying with Prometheus scrape annotations, creating an external metric name, and an HPA that targets value 3 with max replicas 5. During the demo the counter rises to 4, HPA increases replicas from 1 to 2 (average per pod logic), then falls back as logouts decrease the metric.
AI-written summary · about
chapters (13)
- 0:00Introduction
- 1:13Cloud Native motivation
- 2:58Scalability principles
- 6:15Vertical vs Horizontal Pod Auto Scaling
- 8:46Kubernetes HPA and Metrics API
- 12:01MicroProfile Metrics overview
- 16:50Demo setup
- 19:44Deploying to Kubernetes
- 23:01Prometheus Adapter API
- 25:58HPA with MicroProfile Metrics
- 29:52Live auto-scaling demo
- 30:58Summary
- 31:19Q&A
related talks
45mMicroProfile Metrics: Practical Use Cases
30mHorizontal Pod Autoscaler Reloaded - Scale on Custom Metrics
34mAutoscale your Kubernetes Workload with Prometheus - Frederic Branczyk, CoreOS
33mDeep Dive: Kubernetes Metric APIs using Prometheus
51mHorizontal Autoscaling with Kubernetes
25mAutoscaling Kubernetes Workloads Based On Metrics
22mMonitoring Microservices applications on OpenShift
32mDemocratizing Application Monitoring with Prometheus
