SlideShare a Scribd company logo
Deploy, monitor, and take control of
your micro-services with MicroProfile
• How do you monitor this?
• Observability
Octo Blog
What You’ll Learn Today
• Metrics Background
• MicroProfile: Metrics - Fault Tolerance
• Application Metrics - Prometheus - Grafana
Rudy De Busscher
• Payara
• Service team
• JSR-375
• MicroProfile committer
• Committer in Eclipse EE4J groups - Jakarta EE
• Java EE Security API Expert group member
@rdebusscher
https://blog.payara.fish/
https://www.atbash.be
Observability
• Measure of the internal states of a system
• Monitor system(s)
• Metrics
• Tracing
• Health
• Data on the behaviour of systems
• Proactive
• Automation
• Application Performance Management (APM)
Metrics
• Telemetry data
• Gather data and collected centrally for monitoring
• Just collecting data
• No decisions made
• Collect upfront
• Data need to be available when investigation needed
• Start when there are already issues?
• Base line
Tracing
• Understanding your application’s behaviour
• Trace single client request
• Details of request flowing though different micro-services
• Debugging purposes
• Finding bottlenecks
• Monitoring
Health
• Mostly based on metrics
• Kill the server?
• “Treat your servers like cattle not pets”
MicroProfile
• MicroProfile can make your Java EE application more MicroService-ish
• Specifications for
• Configuration
• TypeSafe Rest Client
• Security (JWT Auth)
• Metrics
• OpenTracing
• Fault tolerance
• Health
• OpenAPI
• …
Test system
Payara

Server
Prometheus Grafana
Time series DB
Graphics

Dashboards
Expose metrics
Using Docker containers
Setup demo environment
• Creating containers
• Connecting them together
• ‘service’ simulation
• Create load through ‘bad’ parallel Prime values calculation.
Demo
MP Metrics
• Expose metrics with Rest endpoint
• Built on CDI only
• Included in MicroProfile 1.2+
• Automatic instrumentation
• No developer code required
• Integration with other MicroProfile specs
• Like Fault Tolerance
• Custom developer metrics
MicroProfile Metrics
• /metrics endpoint
• Prometheus or JSON format
• Different categories
1. System based (default)
2. On events indicated by developer
3. On Fault Tolerance events.
4. Custom defined (business related)
• Why Not JMX?
• Polyglot nature of Micro-services
• JMX difficult for non-java systems.
MicroProfile metrics
Default MP Metrics
• Required by specification
• System based
• CPU
• Memory - Garbage Collection
• Threads
• Class count
Freepik
1
Prometheus
• Open Source
• Started by SoundCloud in 2012
• Now Cloud Native Computing Foundation.
• Multi-dimensional data model with time series
• Query Language
• Pull data
• Alert Manager
Prometheus alternatives
• Graphite
• Need to push metrics to it
• Influx DB
• Needs rest of stack (Telegraf - Chronograf - Capacitor)
Grafana
• Open Source tool for visualization
• query, visualize, alert on
• For time series
• Kibana
• Recent improved support for time-series
• Works only on top of ElasticSearch
Grafana alternatives
On events
• Invocation Count
• @Counted
• Execution time information
• @Timed
• @Metered
• More detailed information with Tracing
Freepik
2
Fault Tolerance
• Number of retries
• @Retry
• @CircuitBreaker
• Open, Half-Open, Closed
• @BulkHead
• Accepted, Rejected
• @Callback
• # calls
Freepik
3
Control and monitor_microservices_with_microprofile
Developer defined
• Custom defined values
• @Gauge
• On field or getter
• If business value, store them somewhere
Freepik
4
Kubernetes
• Orchestration
• Docker-compose
• Ideal for smaller ‘installations’
• Open-Source Platform to Manage containers
• Not only docker containers
• Core tasks
• Deployment
• Scale
• Monitoring
Control and monitor_microservices_with_microprofile
Kubernetes Monitoring
• Metrics
• Metrics for k8s processes/actions
• Metrics-server
• Scaling
• Horizontal Pod scaling (kubectl autoscale )
• Monitoring
• Restart pods
• Keep system ‘healthy'
K8s monitoring
• Demo
• Kill server
• Automatic recovering
Demo
K8s monitoring
• K8S
• Kill server/container/pod
• Automatic recovering
• Prometheus within k8s
Take aways
• Get Metrics from your app/‘server’
• Connect to Prometheus
• Show time series with Grafana
• Different types of metrics
• System
• ‘Events’
• From other MP
• Kubernetes
• Keep app healthy
Code
• MicroProfile
• https://microprofile.io
• Demo code
• https://github.com/rdebusscher/mp-metrics-demo
Q & A
Thank You
Not using the Payara Platform yet? Download the open
source software: Payara Server or Payara Micro
https://payara.fish/downloads


Need support for the Payara Platform?
https://payara.fish/support

More Related Content

What's hot (19)

PPTX
JakartaOne Livestream CN4J: Eclipse MicroProfile - Your Cloud-Native Companion
Jakarta_EE
 
PDF
Secure JAX-RS
Payara
 
PPTX
Lightbend Training for Scala, Akka, Play Framework and Apache Spark
Lightbend
 
PPTX
Monitoring Oracle SOA Suite
C2B2 Consulting
 
PPT
Sneaking Scala through the Back Door
Dianne Marsh
 
PPTX
Debugging Microservices - key challenges and techniques - Microservices Odesa...
Lohika_Odessa_TechTalks
 
PDF
Machine Learning At Speed: Operationalizing ML For Real-Time Data Streams
Lightbend
 
PPTX
Typesafe Reactive Platform: Monitoring 1.0, Commercial features and more
Legacy Typesafe (now Lightbend)
 
PDF
Better Deployments with Sub Environments Using Spring Cloud and Netflix Ribbon
VMware Tanzu
 
PDF
Making Scala Faster: 3 Expert Tips For Busy Development Teams
Lightbend
 
PPTX
Monitoring Oracle SOA Suite - UKOUG Tech15 2015
C2B2 Consulting
 
PDF
Apache Kafka® Delivers a Single Source of Truth for The New York Times
confluent
 
PDF
Pakk Your Alpakka: Reactive Streams Integrations For AWS, Azure, & Google Cloud
Lightbend
 
PPTX
Microservices and Integration: what's next with Istio service mesh
Christian Posta
 
PDF
Akka at Enterprise Scale: Performance Tuning Distributed Applications
Lightbend
 
PDF
Gradual migration to MicroProfile
Rudy De Busscher
 
PDF
Introduction to Micronaut - JBCNConf 2019
graemerocher
 
PPTX
Distributed tracing 101
Itiel Shwartz
 
JakartaOne Livestream CN4J: Eclipse MicroProfile - Your Cloud-Native Companion
Jakarta_EE
 
Secure JAX-RS
Payara
 
Lightbend Training for Scala, Akka, Play Framework and Apache Spark
Lightbend
 
Monitoring Oracle SOA Suite
C2B2 Consulting
 
Sneaking Scala through the Back Door
Dianne Marsh
 
Debugging Microservices - key challenges and techniques - Microservices Odesa...
Lohika_Odessa_TechTalks
 
Machine Learning At Speed: Operationalizing ML For Real-Time Data Streams
Lightbend
 
Typesafe Reactive Platform: Monitoring 1.0, Commercial features and more
Legacy Typesafe (now Lightbend)
 
Better Deployments with Sub Environments Using Spring Cloud and Netflix Ribbon
VMware Tanzu
 
Making Scala Faster: 3 Expert Tips For Busy Development Teams
Lightbend
 
Monitoring Oracle SOA Suite - UKOUG Tech15 2015
C2B2 Consulting
 
Apache Kafka® Delivers a Single Source of Truth for The New York Times
confluent
 
Pakk Your Alpakka: Reactive Streams Integrations For AWS, Azure, & Google Cloud
Lightbend
 
Microservices and Integration: what's next with Istio service mesh
Christian Posta
 
Akka at Enterprise Scale: Performance Tuning Distributed Applications
Lightbend
 
Gradual migration to MicroProfile
Rudy De Busscher
 
Introduction to Micronaut - JBCNConf 2019
graemerocher
 
Distributed tracing 101
Itiel Shwartz
 

Similar to Control and monitor_microservices_with_microprofile (20)

PDF
Monitor Microservices with MicroProfile Metrics
Payara
 
PDF
Master a Cloud Native Standard - MicroProfile.pdf
EmilyJiang23
 
PDF
Master a Cloud Native Standard - MicroProfile.pdf
EmilyJiang23
 
PDF
Introduction to MicroProfile Metrics
Kenji HASUNUMA
 
PDF
Introduction to MicroProfile Metrics
Kenji HASUNUMA
 
PDF
The Monitoring and Metic aspects of Eclipse MicroProfile
Heiko Rupp
 
PDF
Challenges in a Microservices Age: Monitoring, Logging and Tracing on Red Hat...
Martin Etmajer
 
PPTX
ThroughTheLookingGlass_EffectiveObservability.pptx
Grace Jansen
 
PDF
2018 11 lightweight-microservices-microprofile
Jean-Louis MONTEIRO
 
PDF
Lightweight Java EE with MicroProfile
Josh Juneau
 
PPTX
Cloud nativeworkshop
Emily Jiang
 
PDF
Microservices and Prometheus (Microservices NYC 2016)
Brian Brazil
 
PDF
Monitoring a Kubernetes-backed microservice architecture with Prometheus
Fabian Reinartz
 
PDF
Monitoring with Prometheus
Richard Langlois P. Eng.
 
PPTX
Master a Cloud Native Standard - MicroProfile.pptx
EmilyJiang23
 
PPTX
Cloud nativemicroservices jax-london2020
Emily Jiang
 
PPTX
Cloud nativemicroservices jax-london2020
Emily Jiang
 
PDF
ApacheCon2019 Talk: Improving the Observability of Cassandra, Kafka and Kuber...
Paul Brebner
 
PPTX
Prometheus and Grafana
Lhouceine OUHAMZA
 
PDF
OSS Japan - Application Monitoring And Tracing In Kubernetes
David vonThenen
 
Monitor Microservices with MicroProfile Metrics
Payara
 
Master a Cloud Native Standard - MicroProfile.pdf
EmilyJiang23
 
Master a Cloud Native Standard - MicroProfile.pdf
EmilyJiang23
 
Introduction to MicroProfile Metrics
Kenji HASUNUMA
 
Introduction to MicroProfile Metrics
Kenji HASUNUMA
 
The Monitoring and Metic aspects of Eclipse MicroProfile
Heiko Rupp
 
Challenges in a Microservices Age: Monitoring, Logging and Tracing on Red Hat...
Martin Etmajer
 
ThroughTheLookingGlass_EffectiveObservability.pptx
Grace Jansen
 
2018 11 lightweight-microservices-microprofile
Jean-Louis MONTEIRO
 
Lightweight Java EE with MicroProfile
Josh Juneau
 
Cloud nativeworkshop
Emily Jiang
 
Microservices and Prometheus (Microservices NYC 2016)
Brian Brazil
 
Monitoring a Kubernetes-backed microservice architecture with Prometheus
Fabian Reinartz
 
Monitoring with Prometheus
Richard Langlois P. Eng.
 
Master a Cloud Native Standard - MicroProfile.pptx
EmilyJiang23
 
Cloud nativemicroservices jax-london2020
Emily Jiang
 
Cloud nativemicroservices jax-london2020
Emily Jiang
 
ApacheCon2019 Talk: Improving the Observability of Cassandra, Kafka and Kuber...
Paul Brebner
 
Prometheus and Grafana
Lhouceine OUHAMZA
 
OSS Japan - Application Monitoring And Tracing In Kubernetes
David vonThenen
 
Ad

More from Rudy De Busscher (15)

PDF
jakarta-integration-testing.pdf
Rudy De Busscher
 
PDF
core-profile_jakartaOne2022.pdf
Rudy De Busscher
 
PDF
MicroStream-WithoutDatabase.pdf
Rudy De Busscher
 
PDF
Jakarta EE 8 on JDK17
Rudy De Busscher
 
PDF
How Class Data Sharing Can Speed up Your Jakarta EE Application Startup
Rudy De Busscher
 
PDF
Creating a Kubernetes Operator in Java
Rudy De Busscher
 
PDF
Finally, easy integration testing with Testcontainers
Rudy De Busscher
 
PDF
Transactions in micro-services (summer 2019)
Rudy De Busscher
 
PDF
Secure JAX-RS
Rudy De Busscher
 
PDF
From Monolith to micro-services and back : The Self Contained Systems
Rudy De Busscher
 
PDF
Java EE Security API - JSR375: Getting Started
Rudy De Busscher
 
PDF
What is tackled in the Java EE Security API (Java EE 8)
Rudy De Busscher
 
PPTX
Java ee 8 + security overview
Rudy De Busscher
 
PPTX
Extending Arquillian graphene
Rudy De Busscher
 
PPTX
Octopus framework; Permission based security framework for Java EE
Rudy De Busscher
 
jakarta-integration-testing.pdf
Rudy De Busscher
 
core-profile_jakartaOne2022.pdf
Rudy De Busscher
 
MicroStream-WithoutDatabase.pdf
Rudy De Busscher
 
Jakarta EE 8 on JDK17
Rudy De Busscher
 
How Class Data Sharing Can Speed up Your Jakarta EE Application Startup
Rudy De Busscher
 
Creating a Kubernetes Operator in Java
Rudy De Busscher
 
Finally, easy integration testing with Testcontainers
Rudy De Busscher
 
Transactions in micro-services (summer 2019)
Rudy De Busscher
 
Secure JAX-RS
Rudy De Busscher
 
From Monolith to micro-services and back : The Self Contained Systems
Rudy De Busscher
 
Java EE Security API - JSR375: Getting Started
Rudy De Busscher
 
What is tackled in the Java EE Security API (Java EE 8)
Rudy De Busscher
 
Java ee 8 + security overview
Rudy De Busscher
 
Extending Arquillian graphene
Rudy De Busscher
 
Octopus framework; Permission based security framework for Java EE
Rudy De Busscher
 
Ad

Recently uploaded (20)

PDF
ChatPharo: an Open Architecture for Understanding How to Talk Live to LLMs
ESUG
 
PDF
Summary Of Odoo 18.1 to 18.4 : The Way For Odoo 19
CandidRoot Solutions Private Limited
 
PPTX
TRAVEL APIs | WHITE LABEL TRAVEL API | TOP TRAVEL APIs
philipnathen82
 
PPTX
Employee salary prediction using Machine learning Project template.ppt
bhanuk27082004
 
PDF
advancepresentationskillshdhdhhdhdhdhhfhf
jasmenrojas249
 
PDF
New Download FL Studio Crack Full Version [Latest 2025]
imang66g
 
PDF
AI Image Enhancer: Revolutionizing Visual Quality”
docmasoom
 
PPTX
Chess King 25.0.0.2500 With Crack Full Free Download
cracked shares
 
PDF
Adobe Illustrator Crack Full Download (Latest Version 2025) Pre-Activated
imang66g
 
PPTX
Role Of Python In Programing Language.pptx
jaykoshti048
 
PDF
Enhancing Healthcare RPM Platforms with Contextual AI Integration
Cadabra Studio
 
PPTX
Contractor Management Platform and Software Solution for Compliance
SHEQ Network Limited
 
PPTX
ChessBase 18.02 Crack + Serial Key Free Download
cracked shares
 
PDF
What companies do with Pharo (ESUG 2025)
ESUG
 
PPTX
Web Testing.pptx528278vshbuqffqhhqiwnwuq
studylike474
 
PDF
Why Are More Businesses Choosing Partners Over Freelancers for Salesforce.pdf
Cymetrix Software
 
PPTX
Presentation about Database and Database Administrator
abhishekchauhan86963
 
PPTX
Farrell__10e_ch04_PowerPoint.pptx Programming Logic and Design slides
bashnahara11
 
PDF
Salesforce Pricing Update 2025: Impact, Strategy & Smart Cost Optimization wi...
GetOnCRM Solutions
 
PDF
How to Download and Install ADT (ABAP Development Tools) for Eclipse IDE | SA...
SAP Vista, an A L T Z E N Company
 
ChatPharo: an Open Architecture for Understanding How to Talk Live to LLMs
ESUG
 
Summary Of Odoo 18.1 to 18.4 : The Way For Odoo 19
CandidRoot Solutions Private Limited
 
TRAVEL APIs | WHITE LABEL TRAVEL API | TOP TRAVEL APIs
philipnathen82
 
Employee salary prediction using Machine learning Project template.ppt
bhanuk27082004
 
advancepresentationskillshdhdhhdhdhdhhfhf
jasmenrojas249
 
New Download FL Studio Crack Full Version [Latest 2025]
imang66g
 
AI Image Enhancer: Revolutionizing Visual Quality”
docmasoom
 
Chess King 25.0.0.2500 With Crack Full Free Download
cracked shares
 
Adobe Illustrator Crack Full Download (Latest Version 2025) Pre-Activated
imang66g
 
Role Of Python In Programing Language.pptx
jaykoshti048
 
Enhancing Healthcare RPM Platforms with Contextual AI Integration
Cadabra Studio
 
Contractor Management Platform and Software Solution for Compliance
SHEQ Network Limited
 
ChessBase 18.02 Crack + Serial Key Free Download
cracked shares
 
What companies do with Pharo (ESUG 2025)
ESUG
 
Web Testing.pptx528278vshbuqffqhhqiwnwuq
studylike474
 
Why Are More Businesses Choosing Partners Over Freelancers for Salesforce.pdf
Cymetrix Software
 
Presentation about Database and Database Administrator
abhishekchauhan86963
 
Farrell__10e_ch04_PowerPoint.pptx Programming Logic and Design slides
bashnahara11
 
Salesforce Pricing Update 2025: Impact, Strategy & Smart Cost Optimization wi...
GetOnCRM Solutions
 
How to Download and Install ADT (ABAP Development Tools) for Eclipse IDE | SA...
SAP Vista, an A L T Z E N Company
 

Control and monitor_microservices_with_microprofile

  • 1. Deploy, monitor, and take control of your micro-services with MicroProfile
  • 2. • How do you monitor this? • Observability Octo Blog
  • 3. What You’ll Learn Today • Metrics Background • MicroProfile: Metrics - Fault Tolerance • Application Metrics - Prometheus - Grafana
  • 4. Rudy De Busscher • Payara • Service team • JSR-375 • MicroProfile committer • Committer in Eclipse EE4J groups - Jakarta EE • Java EE Security API Expert group member @rdebusscher https://blog.payara.fish/ https://www.atbash.be
  • 5. Observability • Measure of the internal states of a system • Monitor system(s) • Metrics • Tracing • Health • Data on the behaviour of systems • Proactive • Automation • Application Performance Management (APM)
  • 6. Metrics • Telemetry data • Gather data and collected centrally for monitoring • Just collecting data • No decisions made • Collect upfront • Data need to be available when investigation needed • Start when there are already issues? • Base line
  • 7. Tracing • Understanding your application’s behaviour • Trace single client request • Details of request flowing though different micro-services • Debugging purposes • Finding bottlenecks • Monitoring
  • 8. Health • Mostly based on metrics • Kill the server? • “Treat your servers like cattle not pets”
  • 9. MicroProfile • MicroProfile can make your Java EE application more MicroService-ish • Specifications for • Configuration • TypeSafe Rest Client • Security (JWT Auth) • Metrics • OpenTracing • Fault tolerance • Health • OpenAPI • …
  • 10. Test system Payara
 Server Prometheus Grafana Time series DB Graphics
 Dashboards Expose metrics Using Docker containers
  • 11. Setup demo environment • Creating containers • Connecting them together • ‘service’ simulation • Create load through ‘bad’ parallel Prime values calculation.
  • 12. Demo
  • 13. MP Metrics • Expose metrics with Rest endpoint • Built on CDI only • Included in MicroProfile 1.2+ • Automatic instrumentation • No developer code required • Integration with other MicroProfile specs • Like Fault Tolerance • Custom developer metrics
  • 14. MicroProfile Metrics • /metrics endpoint • Prometheus or JSON format • Different categories 1. System based (default) 2. On events indicated by developer 3. On Fault Tolerance events. 4. Custom defined (business related)
  • 15. • Why Not JMX? • Polyglot nature of Micro-services • JMX difficult for non-java systems. MicroProfile metrics
  • 16. Default MP Metrics • Required by specification • System based • CPU • Memory - Garbage Collection • Threads • Class count Freepik 1
  • 17. Prometheus • Open Source • Started by SoundCloud in 2012 • Now Cloud Native Computing Foundation. • Multi-dimensional data model with time series • Query Language • Pull data • Alert Manager
  • 18. Prometheus alternatives • Graphite • Need to push metrics to it • Influx DB • Needs rest of stack (Telegraf - Chronograf - Capacitor)
  • 19. Grafana • Open Source tool for visualization • query, visualize, alert on • For time series
  • 20. • Kibana • Recent improved support for time-series • Works only on top of ElasticSearch Grafana alternatives
  • 21. On events • Invocation Count • @Counted • Execution time information • @Timed • @Metered • More detailed information with Tracing Freepik 2
  • 22. Fault Tolerance • Number of retries • @Retry • @CircuitBreaker • Open, Half-Open, Closed • @BulkHead • Accepted, Rejected • @Callback • # calls Freepik 3
  • 24. Developer defined • Custom defined values • @Gauge • On field or getter • If business value, store them somewhere Freepik 4
  • 25. Kubernetes • Orchestration • Docker-compose • Ideal for smaller ‘installations’ • Open-Source Platform to Manage containers • Not only docker containers • Core tasks • Deployment • Scale • Monitoring
  • 27. Kubernetes Monitoring • Metrics • Metrics for k8s processes/actions • Metrics-server • Scaling • Horizontal Pod scaling (kubectl autoscale ) • Monitoring • Restart pods • Keep system ‘healthy'
  • 28. K8s monitoring • Demo • Kill server • Automatic recovering
  • 29. Demo K8s monitoring • K8S • Kill server/container/pod • Automatic recovering • Prometheus within k8s
  • 30. Take aways • Get Metrics from your app/‘server’ • Connect to Prometheus • Show time series with Grafana • Different types of metrics • System • ‘Events’ • From other MP • Kubernetes • Keep app healthy
  • 31. Code • MicroProfile • https://microprofile.io • Demo code • https://github.com/rdebusscher/mp-metrics-demo
  • 32. Q & A
  • 33. Thank You Not using the Payara Platform yet? Download the open source software: Payara Server or Payara Micro https://payara.fish/downloads 
 Need support for the Payara Platform? https://payara.fish/support