SlideShare ist ein Scribd-Unternehmen logo
1 von 32
Downloaden Sie, um offline zu lesen
Monitor 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
• Java EE Security API Expert group member
• Committer in Eclipse EE4J groups
• Java EE Believer
@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
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
• … (more to come)
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
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
Kubernetes Monitoring
• Metrics
• Metrics for k8s processes/actions
• Metrics-server
• Monitoring
• Restart pods
• Keep system ‘healthy'
K8s monitoring
• Demo
• Kill server
• Automatic recovering
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

Weitere ähnliche Inhalte

Was ist angesagt?

Techniques for scaling application with security and visibility in cloud
Techniques for scaling application with security and visibility in cloudTechniques for scaling application with security and visibility in cloud
Techniques for scaling application with security and visibility in cloud
Akshay Mathur
 

Was ist angesagt? (20)

8 cloud design patterns you ought to know - Update Conference 2018
8 cloud design patterns you ought to know - Update Conference 20188 cloud design patterns you ought to know - Update Conference 2018
8 cloud design patterns you ought to know - Update Conference 2018
 
Control and monitor_microservices_with_microprofile
Control and monitor_microservices_with_microprofileControl and monitor_microservices_with_microprofile
Control and monitor_microservices_with_microprofile
 
Monitoring Oracle SOA Suite
Monitoring Oracle SOA SuiteMonitoring Oracle SOA Suite
Monitoring Oracle SOA Suite
 
Advanced queries on the Infinispan Data Grid
Advanced queries on the Infinispan Data Grid Advanced queries on the Infinispan Data Grid
Advanced queries on the Infinispan Data Grid
 
Introduction to Micronaut - JBCNConf 2019
Introduction to Micronaut - JBCNConf 2019Introduction to Micronaut - JBCNConf 2019
Introduction to Micronaut - JBCNConf 2019
 
Monitoring Oracle SOA Suite - UKOUG Tech15 2015
Monitoring Oracle SOA Suite - UKOUG Tech15 2015Monitoring Oracle SOA Suite - UKOUG Tech15 2015
Monitoring Oracle SOA Suite - UKOUG Tech15 2015
 
Transactions in micro-services (fall 2019)
Transactions in micro-services (fall 2019)Transactions in micro-services (fall 2019)
Transactions in micro-services (fall 2019)
 
Monitor Micro-service with MicroProfile metrics
Monitor Micro-service with MicroProfile metricsMonitor Micro-service with MicroProfile metrics
Monitor Micro-service with MicroProfile metrics
 
The 6 Rules for Modernizing Your Legacy Java Monolith with Microservices
The 6 Rules for Modernizing Your Legacy Java Monolith with MicroservicesThe 6 Rules for Modernizing Your Legacy Java Monolith with Microservices
The 6 Rules for Modernizing Your Legacy Java Monolith with Microservices
 
Microservices with Spring Cloud
Microservices with Spring CloudMicroservices with Spring Cloud
Microservices with Spring Cloud
 
Tokyo Azure Meetup #4 - Build 2016 Overview
Tokyo Azure Meetup #4 -  Build 2016 OverviewTokyo Azure Meetup #4 -  Build 2016 Overview
Tokyo Azure Meetup #4 - Build 2016 Overview
 
Tokyo azure meetup #9 azure update, october
Tokyo azure meetup #9   azure update, octoberTokyo azure meetup #9   azure update, october
Tokyo azure meetup #9 azure update, october
 
Community and Java EE @ DevConf.CZ
Community and Java EE @ DevConf.CZCommunity and Java EE @ DevConf.CZ
Community and Java EE @ DevConf.CZ
 
Tokyo azure meetup #8 - Azure Update, August
Tokyo azure meetup #8 - Azure Update, AugustTokyo azure meetup #8 - Azure Update, August
Tokyo azure meetup #8 - Azure Update, August
 
Techniques for scaling application with security and visibility in cloud
Techniques for scaling application with security and visibility in cloudTechniques for scaling application with security and visibility in cloud
Techniques for scaling application with security and visibility in cloud
 
Micronaut Deep Dive - Codeone 2019
Micronaut Deep Dive - Codeone 2019Micronaut Deep Dive - Codeone 2019
Micronaut Deep Dive - Codeone 2019
 
High Performance Java EE with JCache and CDI
High Performance Java EE with JCache and CDIHigh Performance Java EE with JCache and CDI
High Performance Java EE with JCache and CDI
 
Micronaut Deep Dive - Devoxx Belgium 2019
Micronaut Deep Dive - Devoxx Belgium 2019Micronaut Deep Dive - Devoxx Belgium 2019
Micronaut Deep Dive - Devoxx Belgium 2019
 
Tokyo Azure Meetup #9 - Azure Update, september
Tokyo Azure Meetup #9 - Azure Update, septemberTokyo Azure Meetup #9 - Azure Update, september
Tokyo Azure Meetup #9 - Azure Update, september
 
Data stores: beyond relational databases
Data stores: beyond relational databasesData stores: beyond relational databases
Data stores: beyond relational databases
 

Ähnlich wie Monitor Microservices with MicroProfile Metrics

Providence: rapid vulnerability prevention
Providence: rapid vulnerability preventionProvidence: rapid vulnerability prevention
Providence: rapid vulnerability prevention
Salesforce Engineering
 

Ähnlich wie Monitor Microservices with MicroProfile Metrics (20)

Cloud patterns at Carleton University
Cloud patterns at Carleton UniversityCloud patterns at Carleton University
Cloud patterns at Carleton University
 
Resolving problems & high availability
Resolving problems & high availabilityResolving problems & high availability
Resolving problems & high availability
 
Cloud Design Patterns - Hong Kong Codeaholics
Cloud Design Patterns - Hong Kong CodeaholicsCloud Design Patterns - Hong Kong Codeaholics
Cloud Design Patterns - Hong Kong Codeaholics
 
DataEngConf SF16 - Scalable and Reliable Logging at Pinterest
DataEngConf SF16 - Scalable and Reliable Logging at PinterestDataEngConf SF16 - Scalable and Reliable Logging at Pinterest
DataEngConf SF16 - Scalable and Reliable Logging at Pinterest
 
Scalable and Reliable Logging at Pinterest
Scalable and Reliable Logging at PinterestScalable and Reliable Logging at Pinterest
Scalable and Reliable Logging at Pinterest
 
ThroughTheLookingGlass_EffectiveObservability.pptx
ThroughTheLookingGlass_EffectiveObservability.pptxThroughTheLookingGlass_EffectiveObservability.pptx
ThroughTheLookingGlass_EffectiveObservability.pptx
 
TTPs for Threat hunting In Oil Refineries
TTPs for Threat hunting In Oil RefineriesTTPs for Threat hunting In Oil Refineries
TTPs for Threat hunting In Oil Refineries
 
Monitoring and Scaling Redis at DataDog - Ilan Rabinovitch, DataDog
 Monitoring and Scaling Redis at DataDog - Ilan Rabinovitch, DataDog Monitoring and Scaling Redis at DataDog - Ilan Rabinovitch, DataDog
Monitoring and Scaling Redis at DataDog - Ilan Rabinovitch, DataDog
 
Observability with Spring-based distributed systems
Observability with Spring-based distributed systemsObservability with Spring-based distributed systems
Observability with Spring-based distributed systems
 
PMIx Tiered Storage Support
PMIx Tiered Storage SupportPMIx Tiered Storage Support
PMIx Tiered Storage Support
 
Real time monitoring of hadoop and spark workflows
Real time monitoring of hadoop and spark workflowsReal time monitoring of hadoop and spark workflows
Real time monitoring of hadoop and spark workflows
 
Providence: rapid vulnerability prevention
Providence: rapid vulnerability preventionProvidence: rapid vulnerability prevention
Providence: rapid vulnerability prevention
 
ADDO Open Source Observability Tools
ADDO Open Source Observability Tools ADDO Open Source Observability Tools
ADDO Open Source Observability Tools
 
Building data intensive applications
Building data intensive applicationsBuilding data intensive applications
Building data intensive applications
 
From Pilot to Product - Morning@Lohika
From Pilot to Product - Morning@LohikaFrom Pilot to Product - Morning@Lohika
From Pilot to Product - Morning@Lohika
 
IPAM Security Considerations
IPAM Security ConsiderationsIPAM Security Considerations
IPAM Security Considerations
 
Observability with Spring-based distributed systems
Observability with Spring-based distributed systemsObservability with Spring-based distributed systems
Observability with Spring-based distributed systems
 
Azure Application insights - An Introduction
Azure Application insights - An IntroductionAzure Application insights - An Introduction
Azure Application insights - An Introduction
 
Cloud Design Patterns
Cloud Design PatternsCloud Design Patterns
Cloud Design Patterns
 
Production Ready Microservices at Scale
Production Ready Microservices at ScaleProduction Ready Microservices at Scale
Production Ready Microservices at Scale
 

Mehr von Payara

Mehr von Payara (20)

Easy Java Integration Testing with Testcontainers​
Easy Java Integration Testing with Testcontainers​Easy Java Integration Testing with Testcontainers​
Easy Java Integration Testing with Testcontainers​
 
Payara Cloud - Cloud Native Jakarta EE.pptx
Payara Cloud - Cloud Native Jakarta EE.pptxPayara Cloud - Cloud Native Jakarta EE.pptx
Payara Cloud - Cloud Native Jakarta EE.pptx
 
Jakarta Concurrency: Present and Future
Jakarta Concurrency: Present and FutureJakarta Concurrency: Present and Future
Jakarta Concurrency: Present and Future
 
GlassFish Migration Webinar 2022 Current version.pptx
GlassFish Migration Webinar 2022 Current version.pptxGlassFish Migration Webinar 2022 Current version.pptx
GlassFish Migration Webinar 2022 Current version.pptx
 
10 Strategies for Developing Reliable Jakarta EE & MicroProfile Applications ...
10 Strategies for Developing Reliable Jakarta EE & MicroProfile Applications ...10 Strategies for Developing Reliable Jakarta EE & MicroProfile Applications ...
10 Strategies for Developing Reliable Jakarta EE & MicroProfile Applications ...
 
Securing Microservices with MicroProfile and Auth0v2
Securing Microservices with MicroProfile and Auth0v2Securing Microservices with MicroProfile and Auth0v2
Securing Microservices with MicroProfile and Auth0v2
 
Reactive features of MicroProfile you need to learn
Reactive features of MicroProfile you need to learnReactive features of MicroProfile you need to learn
Reactive features of MicroProfile you need to learn
 
A step-by-step guide from traditional Java EE to reactive microservice design
A step-by-step guide from traditional Java EE to reactive microservice designA step-by-step guide from traditional Java EE to reactive microservice design
A step-by-step guide from traditional Java EE to reactive microservice design
 
Transactions in Microservices
Transactions in MicroservicesTransactions in Microservices
Transactions in Microservices
 
Fun with Kubernetes and Payara Micro 5
Fun with Kubernetes and Payara Micro 5Fun with Kubernetes and Payara Micro 5
Fun with Kubernetes and Payara Micro 5
 
What's new in Jakarta EE and Eclipse GlassFish (May 2019)
What's new in Jakarta EE and Eclipse GlassFish (May 2019)What's new in Jakarta EE and Eclipse GlassFish (May 2019)
What's new in Jakarta EE and Eclipse GlassFish (May 2019)
 
Previewing Payara Platform 5.192
Previewing Payara Platform 5.192Previewing Payara Platform 5.192
Previewing Payara Platform 5.192
 
Gradual Migration to MicroProfile
Gradual Migration to MicroProfileGradual Migration to MicroProfile
Gradual Migration to MicroProfile
 
Java2 days -_be_reactive_and_micro_with_a_microprofile_stack
Java2 days -_be_reactive_and_micro_with_a_microprofile_stackJava2 days -_be_reactive_and_micro_with_a_microprofile_stack
Java2 days -_be_reactive_and_micro_with_a_microprofile_stack
 
Java2 days 5_agile_steps_to_cloud-ready_apps
Java2 days 5_agile_steps_to_cloud-ready_appsJava2 days 5_agile_steps_to_cloud-ready_apps
Java2 days 5_agile_steps_to_cloud-ready_apps
 
Rapid development tools for java ee 8 and micro profile [GIDS]
Rapid development tools for java ee 8 and micro profile [GIDS] Rapid development tools for java ee 8 and micro profile [GIDS]
Rapid development tools for java ee 8 and micro profile [GIDS]
 
Ondrej mihalyi be reactive and micro with a micro profile stack
Ondrej mihalyi   be reactive and micro with a micro profile stackOndrej mihalyi   be reactive and micro with a micro profile stack
Ondrej mihalyi be reactive and micro with a micro profile stack
 
Bed con Quest for JavaEE
Bed con Quest for JavaEEBed con Quest for JavaEE
Bed con Quest for JavaEE
 
Payara Micro from Raspberry Pi to Cloud
Payara Micro from Raspberry Pi to CloudPayara Micro from Raspberry Pi to Cloud
Payara Micro from Raspberry Pi to Cloud
 
Microprofile and EE4J update
Microprofile and EE4J updateMicroprofile and EE4J update
Microprofile and EE4J update
 

Kürzlich hochgeladen

Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
Joaquim Jorge
 

Kürzlich hochgeladen (20)

Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
GenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdfGenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdf
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
 
A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CV
 
Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024
 
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingRepurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024
 
Top 5 Benefits OF Using Muvi Live Paywall For Live Streams
Top 5 Benefits OF Using Muvi Live Paywall For Live StreamsTop 5 Benefits OF Using Muvi Live Paywall For Live Streams
Top 5 Benefits OF Using Muvi Live Paywall For Live Streams
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
 

Monitor Microservices with MicroProfile Metrics

  • 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 • Java EE Security API Expert group member • Committer in Eclipse EE4J groups • Java EE Believer @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
  • 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 • … (more to come)
  • 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
  • 23.
  • 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
  • 26.
  • 27. Kubernetes Monitoring • Metrics • Metrics for k8s processes/actions • Metrics-server • Monitoring • Restart pods • Keep system ‘healthy'
  • 28. K8s monitoring • Demo • Kill server • Automatic recovering
  • 29. 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
  • 30. Code • MicroProfile • https://microprofile.io • Demo code • https://github.com/rdebusscher/mp-metrics-demo
  • 31. Q & A
  • 32. 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