Se ha denunciado esta presentación.
Se está descargando tu SlideShare. ×

Extra micrometer practices with Quarkus | DevNation Tech Talk

Extra micrometer practices with Quarkus | DevNation Tech Talk

Descargar para leer sin conexión

How do you know you have improved the performance of your portfolio of applications? By measuring it, of course! The ultimate goal of gathering application metrics is to have a standardized practice that is applicable across multiple microservices and that adds minimal runtime overhead. Join this session to discuss what metrics are available out of the box with the Quarkus micrometer extensions, what (and, more importantly, why) you should customize, and how those pieces of information will impact your development outcomes.

How do you know you have improved the performance of your portfolio of applications? By measuring it, of course! The ultimate goal of gathering application metrics is to have a standardized practice that is applicable across multiple microservices and that adds minimal runtime overhead. Join this session to discuss what metrics are available out of the box with the Quarkus micrometer extensions, what (and, more importantly, why) you should customize, and how those pieces of information will impact your development outcomes.

Más Contenido Relacionado

Más de Red Hat Developers

Audiolibros relacionados

Gratis con una prueba de 30 días de Scribd

Ver todo

Extra micrometer practices with Quarkus | DevNation Tech Talk

  1. 1. dn.dev/extra-quarkus-metrics Extra Micrometer practices with Quarkus  Ana-Maria Mihalceanu Developer Advocate 1
  2. 2. Hello! I am Ana 2 Java Champion, Certified Architect Developer Advocate @ Red Hat Passionate about solving complex scenarios involving Java-based frameworks and multiple cloud providers. ammbra1508
  3. 3. 3
  4. 4. Using metrics that matter(1) Metrics that matter 4 Throughput Being able to observe throughput variation can help engineers gauge how many containers and their respective resources are needed to support the traffic. Memory Knowing how and when the language (used to develop applications) allocates and cleans up memory is essential to scaling. Queue time Observing time of requests flowing from load balancers to web apps and background job worker queues.
  5. 5. Using metrics that matter(2) Metrics that matter 5 Average response time This metric is influenced by how the transactions are handled across different parts of your system, and has a high impact on end-user satisfaction. Error rates A few applications error to track: percentage of HTTP errors, logged exceptions , thrown exceptions.
  6. 6. Why Quarkus? Metrics that matter 6 https://developers.redhat.com/blog/2021/02/11/enhancing-the-development-loop-with-quarkus-remote-development Developer Experience Live Reload Continuous Testing DevServices Remote Development Unifies imperative and reactive Supports both reactive and imperative programming models. Micrometer extensions Instrument your application using Micrometer and integrate with the registry of your choice (Datadog, Prometheus, JMX, Stackdriver, Azure Monitor etc). OpenTelemetry extensions Use OpenTelemetry extension to trace services or the various exporters correlation of traces with metrics.
  7. 7. Seeing is believing 7 DEMO
  8. 8. Start to code 8 code.quarkus.io quarkus ext add quarkus-micrometer
  9. 9. TAKEAWAYS 9 Global tags Create your own global tags to help further you inspecting performance statistics per region. Use annotations Check the number of invocations with @Counted annotation on top of the methods. Add @Timed annotation on top of the expected methods to run long-running operations and deserve a closer inspection. Follow distribution of events Obtain the summary of events via DistributionSummary. Dynamic Tags Get more insights by dynamically adding more tags.
  10. 10. The code 10 https://github.com/ammbra/micrometering-with-quarkus
  11. 11. Additional resources 11 More to learn from
  12. 12. 12 https://quarkus.io @quarkusio https://quarkusio.zulipchat.com
  13. 13. 13 Download Modernizing Enterprise Java Download Quarkus Cheat Sheet
  14. 14. linkedin.com/showcase/red-hat-develop er youtube.com/redhatdevelopers facebook.com/redhatdeveloperprogra m twitter.com/rhdevelopers Red Hat is the world’s leading provider of enterprise open source software solutions. Award-winning support, training, and consulting services make Red Hat a trusted adviser to the Fortune 500. Thank you 14

×